<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html xmlns:yui="http://yuilibrary.com/rdf/1.0/yui.rdf#">
<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<title>API: datatable   DataTable.js  (YUI Library)</title>

	<link rel="stylesheet" type="text/css" href="assets/reset-fonts-grids-min.css" />
	<link rel="stylesheet" type="text/css" href="assets/api.css" />

    <script type="text/javascript" src="assets/api-js"></script>
    <script type="text/javascript" src="assets/ac-js"></script>
</head>

<body id="yahoo-com">

<div id="doc3" class="yui-t2">
	<div id="hd">
        <h1><a href="http://developer.yahoo.com/yui/" title="Yahoo! UI Library">Yahoo! UI Library</a></h1>
        <h3>DataTable Widget&nbsp; <span class="subtitle">2.7.0</span></h3>
        <a href="./index.html" title="Yahoo! UI Library">Yahoo! UI Library</a> 
            &gt; <a href="./module_datatable.html" title="datatable">datatable</a>
                
                 &gt; DataTable.js (source view) 
        <form onsubmit="return false">
            <div id="propertysearch">
                Search: <input autocomplete="off" id="searchinput" />
                <div id="searchresults">
                    &nbsp;
                </div>
            </div>
        </form>
	</div>

	<div id="bd">
		<div id="yui-main">
			<div class="yui-b">
            <form action="#" name="yui-classopts-form" method="get" id="yui-classopts-form">
                <fieldset>
                    <legend>Filters</legend>
                <span class="classopts"><input type="checkbox" name="show_private" id="show_private" /> <label for="show_private">Show Private</label></span>
                <span class="classopts"><input type="checkbox" name="show_protected" id="show_protected" /> <label for="show_protected">Show Protected</label></span>
                <span class="classopts"><input type="checkbox" name="show_deprecated" id="show_deprecated" /> <label for="show_deprecated">Show Deprecated</label></span>
                </fieldset>
            </form>

                    <div id="srcout">
                        <style>
                            #doc3 .classopts { display:none; }
                        </style>
<div class="highlight" ><pre><span class="o">(</span><span class="k">function</span><span class="o">()</span> <span class="o">{</span>

    <span class="k">var</span> <span class="nx">gCount</span> <span class="o">=</span> <span class="o">-</span><span class="m">1</span><span class="o">;</span>

    <span class="k">var</span> <span class="nx">Dom</span><span class="o">=</span><span class="nx">YAHOO</span><span class="o">.</span><span class="nx">util</span><span class="o">.</span><span class="nx">Dom</span><span class="o">,</span>
        <span class="nx">Assert</span><span class="o">=</span><span class="nx">YAHOO</span><span class="o">.</span><span class="nx">util</span><span class="o">.</span><span class="nx">Assert</span><span class="o">,</span>
        <span class="nx">ObjectAssert</span><span class="o">=</span><span class="nx">YAHOO</span><span class="o">.</span><span class="nx">util</span><span class="o">.</span><span class="nx">ObjectAssert</span><span class="o">,</span>
        <span class="nx">ArrayAssert</span><span class="o">=</span><span class="nx">YAHOO</span><span class="o">.</span><span class="nx">util</span><span class="o">.</span><span class="nx">ArrayAssert</span><span class="o">,</span>
        <span class="nx">DateAssert</span><span class="o">=</span><span class="nx">YAHOO</span><span class="o">.</span><span class="nx">util</span><span class="o">.</span><span class="nx">DateAssert</span><span class="o">,</span>
        <span class="nx">UserAction</span><span class="o">=</span><span class="nx">YAHOO</span><span class="o">.</span><span class="nx">util</span><span class="o">.</span><span class="nx">UserAction</span><span class="o">,</span>
        <span class="nx">TestCase</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">tool</span><span class="o">.</span><span class="nx">TestCase</span><span class="o">,</span>
        <span class="nx">TestLogger</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">tool</span><span class="o">.</span><span class="nx">TestLogger</span><span class="o">,</span>
        <span class="nx">TestRunner</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">tool</span><span class="o">.</span><span class="nx">TestRunner</span><span class="o">,</span>
        <span class="nx">TestSuite</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">tool</span><span class="o">.</span><span class="nx">TestSuite</span><span class="o">,</span>

        <span class="nx">DataSource</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">util</span><span class="o">.</span><span class="nx">DataSource</span><span class="o">,</span>
        <span class="nx">DataTable</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">DataTable</span><span class="o">,</span>
        <span class="nx">ColumnSet</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">ColumnSet</span><span class="o">,</span>
        <span class="nx">RecordSet</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">RecordSet</span><span class="o">;</span>

    <span class="c">/**</span>
<span class="c">     *</span>
<span class="c">     *</span>
<span class="c">     * DataTable assertions.</span>
<span class="c">     *</span>
<span class="c">     *</span>
<span class="c">     */</span>
    <span class="k">var</span> <span class="nx">DataTableAssert</span> <span class="o">=</span> <span class="o">{</span>
        <span class="nx">areSameRow</span><span class="o">:</span> <span class="k">function</span><span class="o">(</span><span class="nx">elTr</span><span class="o">,</span> <span class="nx">oRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span>  <span class="nx">msg</span><span class="o">)</span> <span class="o">{</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">elTr</span><span class="o">.</span><span class="nx">tagName</span><span class="o">.</span><span class="nx">toLowerCase</span><span class="o">(),</span> <span class="s2">&quot;Expected a TR element: &quot;</span> <span class="o">+</span> <span class="nx">msg</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">elTr</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="nx">oRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="s2">&quot;TR ID and Record IDs don&#39;t match: &quot;</span> <span class="o">+</span> <span class="nx">msg</span><span class="o">);</span>
        <span class="o">},</span>
        
        <span class="nx">areSameCell</span><span class="o">:</span> <span class="k">function</span><span class="o">(</span><span class="nx">elTd</span><span class="o">,</span> <span class="nx">oRecord</span><span class="o">,</span> <span class="nx">oColumn</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="nx">msg</span><span class="o">)</span> <span class="o">{</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="s2">&quot;td&quot;</span><span class="o">,</span> <span class="nx">elTd</span><span class="o">.</span><span class="nx">tagName</span><span class="o">.</span><span class="nx">toLowerCase</span><span class="o">(),</span> <span class="s2">&quot;Expected a TD element: &quot;</span> <span class="o">+</span> <span class="nx">msg</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">elTd</span><span class="o">.</span><span class="nx">cellIndex</span><span class="o">,</span> <span class="nx">oColumn</span><span class="o">.</span><span class="nx">getKeyIndex</span><span class="o">(),</span> <span class="s2">&quot;TR index and Column key index don&#39;t match: &quot;</span> <span class="o">+</span> <span class="nx">msg</span><span class="o">);</span>
            <span class="k">this</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elTd</span><span class="o">.</span><span class="nx">parentNode</span><span class="o">,</span> <span class="nx">oRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="nx">msg</span><span class="o">);</span>
        <span class="o">}</span>
    <span class="o">};</span>

    <span class="c">/**</span>
<span class="c">     *</span>
<span class="c">     *</span>
<span class="c">     * Base DataTable test case.</span>
<span class="c">     *</span>
<span class="c">     *</span>
<span class="c">     */</span>
    <span class="k">function</span> <span class="nx">DataTableTestCase</span><span class="o">(</span><span class="nx">template</span><span class="o">)</span> <span class="o">{</span>
        <span class="nx">DataTableTestCase</span><span class="o">.</span><span class="nx">superclass</span><span class="o">.</span><span class="nx">constructor</span><span class="o">.</span><span class="nx">call</span><span class="o">(</span><span class="k">this</span><span class="o">,</span> <span class="nx">template</span><span class="o">);</span>
    <span class="o">};</span>
    <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">lang</span><span class="o">.</span><span class="nx">extend</span><span class="o">(</span><span class="nx">DataTableTestCase</span><span class="o">,</span> <span class="nx">TestCase</span><span class="o">);</span>

    <span class="nx">DataTableTestCase</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">setUp</span> <span class="o">=</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
        <span class="c">// Create container anew</span>
<span class="c"></span>        <span class="k">this</span><span class="o">.</span><span class="nx">container</span> <span class="o">=</span> <span class="nb">document</span><span class="o">.</span><span class="nx">createElement</span><span class="o">(</span><span class="s2">&quot;div&quot;</span><span class="o">);</span>
        <span class="nb">document</span><span class="o">.</span><span class="nx">body</span><span class="o">.</span><span class="nx">appendChild</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">container</span><span class="o">);</span>
        
        <span class="c">// Create DataSource anew</span>
<span class="c"></span>        <span class="k">this</span><span class="o">.</span><span class="nx">datasource</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">util</span><span class="o">.</span><span class="nx">DataSource</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">dsData</span><span class="o">,</span> <span class="k">this</span><span class="o">.</span><span class="nx">dsConfig</span><span class="o">);</span>
    <span class="o">};</span>

    <span class="nx">DataTableTestCase</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">tearDown</span> <span class="o">=</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
        <span class="c">// Destroy DataTable</span>
<span class="c"></span>        <span class="k">this</span><span class="o">.</span><span class="nx">datatable</span><span class="o">.</span><span class="nx">destroy</span><span class="o">();</span>
        <span class="k">this</span><span class="o">.</span><span class="nx">datatable</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
        
        <span class="c">//  Destroy container</span>
<span class="c"></span>        <span class="k">if</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">container</span> <span class="o">!==</span> <span class="kc">null</span><span class="o">)</span> <span class="o">{</span>
            <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">util</span><span class="o">.</span><span class="nx">Event</span><span class="o">.</span><span class="nx">purgeElement</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">container</span><span class="o">,</span> <span class="kc">true</span><span class="o">);</span>
            <span class="nb">document</span><span class="o">.</span><span class="nx">body</span><span class="o">.</span><span class="nx">removeChild</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">container</span><span class="o">);</span>
            <span class="k">this</span><span class="o">.</span><span class="nx">container</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
        <span class="o">}</span>
        
        <span class="c">// TODO: need a destroy method</span>
<span class="c"></span>        <span class="k">this</span><span class="o">.</span><span class="nx">datasource</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
    <span class="o">};</span>

    <span class="nx">DataTableTestCase</span><span class="o">.</span><span class="nx">prototype</span><span class="o">.</span><span class="nx">createInstance</span> <span class="o">=</span> <span class="k">function</span><span class="o">(</span><span class="nx">oDT</span><span class="o">,</span> <span class="nx">oConfig</span><span class="o">)</span> <span class="o">{</span>
        <span class="nx">oDT</span> <span class="o">=</span> <span class="nx">oDT</span> <span class="o">||</span> <span class="nx">DataTable</span><span class="o">;</span>
        <span class="k">this</span><span class="o">.</span><span class="nx">datatable</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">oDT</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">container</span><span class="o">,</span> <span class="k">this</span><span class="o">.</span><span class="nx">columns</span><span class="o">,</span> <span class="k">this</span><span class="o">.</span><span class="nx">datasource</span><span class="o">,</span> <span class="nx">oConfig</span><span class="o">);</span>
        <span class="nx">gCount</span><span class="o">++;</span>
        <span class="k">return</span> <span class="k">this</span><span class="o">.</span><span class="nx">datatable</span><span class="o">;</span>
    <span class="o">};</span>

    <span class="c">/**</span>
<span class="c">     *</span>
<span class="c">     *</span>
<span class="c">     * Base DataTable test template. Sets up values for a DataTable instance.</span>
<span class="c">     *</span>
<span class="c">     *</span>
<span class="c">     */</span>
    <span class="k">var</span> <span class="nx">dtBaseTemplate</span> <span class="o">=</span> <span class="o">{</span>
        <span class="nx">name</span><span class="o">:</span> <span class="s2">&quot;DataTable Base Tests&quot;</span><span class="o">,</span>
        
        <span class="nx">dsData</span><span class="o">:</span> <span class="o">[</span>
            <span class="o">{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;0a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;0b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;0c&quot;</span><span class="o">},</span>
            <span class="o">{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;1a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;1b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;1c&quot;</span><span class="o">},</span>
            <span class="o">{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;2a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;2b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;2c&quot;</span><span class="o">},</span>
            <span class="o">{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;3a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;3b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;3c&quot;</span><span class="o">}</span>
        <span class="o">],</span>
            
        <span class="nx">dsConfig</span><span class="o">:</span> <span class="o">{</span>
            <span class="nx">responseType</span><span class="o">:</span><span class="nx">YAHOO</span><span class="o">.</span><span class="nx">util</span><span class="o">.</span><span class="nx">DataSource</span><span class="o">.</span><span class="nx">TYPE_JSARRAY</span><span class="o">,</span>
            <span class="nx">responseSchema</span><span class="o">:{</span><span class="nx">fields</span><span class="o">:[</span><span class="s2">&quot;a&quot;</span><span class="o">,</span><span class="s2">&quot;b&quot;</span><span class="o">,</span><span class="s2">&quot;c&quot;</span><span class="o">]}</span>
        <span class="o">},</span>

        <span class="nx">columns</span><span class="o">:</span> <span class="o">[{</span><span class="nx">key</span><span class="o">:</span><span class="s2">&quot;a&quot;</span><span class="o">},{</span><span class="nx">key</span><span class="o">:</span><span class="s2">&quot;b&quot;</span><span class="o">},{</span><span class="nx">key</span><span class="o">:</span><span class="s2">&quot;c&quot;</span><span class="o">}]</span>
    <span class="o">};</span>
    
    <span class="c">/**</span>
<span class="c">     *</span>
<span class="c">     *</span>
<span class="c">     * Tests various construction use cases.</span>
<span class="c">     *</span>
<span class="c">     *</span>
<span class="c">     */</span>
    <span class="k">var</span> <span class="nx">dtConstructionTemplate</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">lang</span><span class="o">.</span><span class="nx">merge</span><span class="o">(</span><span class="nx">dtBaseTemplate</span><span class="o">,</span> <span class="o">{</span>
        <span class="nx">name</span><span class="o">:</span> <span class="s2">&quot;DataTable Construction Tests&quot;</span><span class="o">,</span>

        <span class="nx">testConstruction</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>

            <span class="nx">Assert</span><span class="o">.</span><span class="nx">isInstanceOf</span><span class="o">(</span><span class="nx">DataTable</span><span class="o">,</span> <span class="k">this</span><span class="o">.</span><span class="nx">datatable</span><span class="o">,</span> <span class="s2">&quot;Failed to create DataTable instance&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">isInstanceOf</span><span class="o">(</span><span class="nx">ColumnSet</span><span class="o">,</span> <span class="k">this</span><span class="o">.</span><span class="nx">datatable</span><span class="o">.</span><span class="nx">getColumnSet</span><span class="o">(),</span> <span class="s2">&quot;Failed to create ColumnSet instance&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">isInstanceOf</span><span class="o">(</span><span class="nx">RecordSet</span><span class="o">,</span> <span class="k">this</span><span class="o">.</span><span class="nx">datatable</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">(),</span> <span class="s2">&quot;Failed to create RecordSet instance&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">dsData</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="k">this</span><span class="o">.</span><span class="nx">datatable</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getLength</span><span class="o">(),</span> <span class="s2">&quot;Unexpected RecordSet length&quot;</span><span class="o">);</span>

        <span class="o">},</span>

        <span class="nx">testNestedHeaders</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="c">//TODO</span>
<span class="c"></span>            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
        <span class="o">},</span>
        
        <span class="nx">testMultipleInstances</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">multiple</span> <span class="o">=</span> <span class="m">3</span><span class="o">;</span> <span class="c">// Set how many instances (total) to create for this test case</span>
<span class="c"></span>            
            <span class="c">// Create first instance</span>
<span class="c"></span>            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">cs</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getColumnSet</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">oColumn</span> <span class="o">=</span> <span class="nx">cs</span><span class="o">.</span><span class="nx">keys</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>

            <span class="c">// Create more instances</span>
<span class="c"></span>            <span class="k">for</span><span class="o">(</span><span class="k">var</span> <span class="nx">i</span><span class="o">=</span><span class="m">1</span><span class="o">;</span> <span class="nx">i</span><span class="o">&lt;</span><span class="nx">multiple</span><span class="o">;</span> <span class="nx">i</span><span class="o">++)</span> <span class="o">{</span>
                <span class="k">this</span><span class="o">[</span><span class="s2">&quot;container&quot;</span><span class="o">+</span><span class="nx">i</span><span class="o">]</span> <span class="o">=</span> <span class="nb">document</span><span class="o">.</span><span class="nx">createElement</span><span class="o">(</span><span class="s2">&quot;div&quot;</span><span class="o">);</span>
                <span class="k">this</span><span class="o">[</span><span class="s2">&quot;container&quot;</span><span class="o">+</span><span class="nx">i</span><span class="o">].</span><span class="nx">id</span> <span class="o">=</span> <span class="s2">&quot;testDTContainer&quot;</span><span class="o">+</span><span class="nx">i</span><span class="o">;</span>
                <span class="nb">document</span><span class="o">.</span><span class="nx">body</span><span class="o">.</span><span class="nx">appendChild</span><span class="o">(</span><span class="k">this</span><span class="o">[</span><span class="s2">&quot;container&quot;</span><span class="o">+</span><span class="nx">i</span><span class="o">]);</span>

                <span class="k">this</span><span class="o">[</span><span class="s2">&quot;datasource&quot;</span><span class="o">+</span><span class="nx">i</span><span class="o">]</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">util</span><span class="o">.</span><span class="nx">DataSource</span><span class="o">(</span><span class="k">this</span><span class="o">.</span><span class="nx">dsData</span><span class="o">,</span> <span class="k">this</span><span class="o">.</span><span class="nx">dsConfig</span><span class="o">);</span>
                
                <span class="k">this</span><span class="o">[</span><span class="s2">&quot;dt&quot;</span><span class="o">+</span><span class="nx">i</span><span class="o">]</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">DataTable</span><span class="o">(</span><span class="k">this</span><span class="o">[</span><span class="s2">&quot;container&quot;</span><span class="o">+</span><span class="nx">i</span><span class="o">],</span> <span class="k">this</span><span class="o">.</span><span class="nx">columns</span><span class="o">,</span> <span class="k">this</span><span class="o">[</span><span class="s2">&quot;datasource&quot;</span><span class="o">+</span><span class="nx">i</span><span class="o">]);</span>
                <span class="k">this</span><span class="o">[</span><span class="s2">&quot;cs&quot;</span><span class="o">+</span><span class="nx">i</span><span class="o">]</span> <span class="o">=</span> <span class="k">this</span><span class="o">[</span><span class="s2">&quot;dt&quot;</span><span class="o">+</span><span class="nx">i</span><span class="o">].</span><span class="nx">getColumnSet</span><span class="o">();</span>
                <span class="nx">gCount</span><span class="o">++;</span>
            <span class="o">}</span>
            
            <span class="c">// Test getColumn() on first instance</span>
<span class="c"></span>            <span class="k">var</span> <span class="nx">el</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTheadEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            <span class="k">var</span> <span class="nx">oTestColumn</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getColumn</span><span class="o">(</span><span class="nx">el</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oColumn</span><span class="o">,</span> <span class="nx">oTestColumn</span><span class="o">,</span> <span class="s2">&quot;Expected to get Column by el reference&quot;</span><span class="o">);</span>

            <span class="c">//oTestColumn = dt.getColumn(el.id);</span>
<span class="c"></span>            <span class="c">//Assert.areSame(oColumn, oTestColumn, &quot;Expected to get Column by DOM ID&quot;);</span>
<span class="c"></span>
            <span class="nx">oTestColumn</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getColumn</span><span class="o">(</span><span class="m">0</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oColumn</span><span class="o">,</span> <span class="nx">oTestColumn</span><span class="o">,</span> <span class="s2">&quot;Expected to get Column by key index&quot;</span><span class="o">);</span>

            <span class="nx">oTestColumn</span> <span class="o">=</span> <span class="nx">cs</span><span class="o">.</span><span class="nx">getColumn</span><span class="o">(</span><span class="s2">&quot;a&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oColumn</span><span class="o">,</span> <span class="nx">oTestColumn</span><span class="o">,</span> <span class="s2">&quot;Expected to get Column by key (ColumnSet method)&quot;</span><span class="o">);</span>

            <span class="nx">oTestColumn</span> <span class="o">=</span> <span class="nx">cs</span><span class="o">.</span><span class="nx">getColumnById</span><span class="o">(</span><span class="nx">oTestColumn</span><span class="o">.</span><span class="nx">getId</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oColumn</span><span class="o">,</span> <span class="nx">oTestColumn</span><span class="o">,</span> <span class="s2">&quot;Expected to get Column by Column ID (ColumnSet method)&quot;</span><span class="o">);</span>
            
            <span class="c">// Test getColumn() on other instances</span>
<span class="c"></span>            <span class="k">for</span><span class="o">(</span><span class="k">var</span> <span class="nx">i</span><span class="o">=</span><span class="m">1</span><span class="o">;</span> <span class="nx">i</span><span class="o">&lt;</span><span class="nx">multiple</span><span class="o">;</span> <span class="nx">i</span><span class="o">++)</span> <span class="o">{</span>
                <span class="nx">oColumn</span> <span class="o">=</span> <span class="k">this</span><span class="o">[</span><span class="s2">&quot;cs&quot;</span><span class="o">+</span><span class="nx">i</span><span class="o">].</span><span class="nx">keys</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
                
                <span class="nx">el</span> <span class="o">=</span> <span class="k">this</span><span class="o">[</span><span class="s2">&quot;dt&quot;</span><span class="o">+</span><span class="nx">i</span><span class="o">].</span><span class="nx">getTheadEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
                <span class="nx">oTestColumn</span> <span class="o">=</span> <span class="k">this</span><span class="o">[</span><span class="s2">&quot;dt&quot;</span><span class="o">+</span><span class="nx">i</span><span class="o">].</span><span class="nx">getColumn</span><span class="o">(</span><span class="nx">el</span><span class="o">);</span>
                <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oColumn</span><span class="o">,</span> <span class="nx">oTestColumn</span><span class="o">,</span> <span class="s2">&quot;Expected to get Column by el reference&quot;</span><span class="o">);</span>

                <span class="c">//oTestColumn = this[&quot;dt&quot;+i].getColumn(el.id);</span>
<span class="c"></span>                <span class="c">//Assert.areSame(oColumn, oTestColumn, &quot;Expected to get Column by DOM ID&quot;);</span>
<span class="c"></span>
                <span class="nx">oTestColumn</span> <span class="o">=</span> <span class="k">this</span><span class="o">[</span><span class="s2">&quot;dt&quot;</span><span class="o">+</span><span class="nx">i</span><span class="o">].</span><span class="nx">getColumn</span><span class="o">(</span><span class="m">0</span><span class="o">);</span>
                <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oColumn</span><span class="o">,</span> <span class="nx">oTestColumn</span><span class="o">,</span> <span class="s2">&quot;Expected to get Column by key index&quot;</span><span class="o">);</span>

                <span class="nx">oTestColumn</span> <span class="o">=</span> <span class="k">this</span><span class="o">[</span><span class="s2">&quot;cs&quot;</span><span class="o">+</span><span class="nx">i</span><span class="o">].</span><span class="nx">getColumn</span><span class="o">(</span><span class="s2">&quot;a&quot;</span><span class="o">);</span>
                <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oColumn</span><span class="o">,</span> <span class="nx">oTestColumn</span><span class="o">,</span> <span class="s2">&quot;Expected to get Column by key&quot;</span><span class="o">);</span>

                <span class="nx">oTestColumn</span> <span class="o">=</span> <span class="k">this</span><span class="o">[</span><span class="s2">&quot;cs&quot;</span><span class="o">+</span><span class="nx">i</span><span class="o">].</span><span class="nx">getColumnById</span><span class="o">(</span><span class="nx">oTestColumn</span><span class="o">.</span><span class="nx">getId</span><span class="o">());</span>
                <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oColumn</span><span class="o">,</span> <span class="nx">oTestColumn</span><span class="o">,</span> <span class="s2">&quot;Expected to get Column by Column ID&quot;</span><span class="o">);</span>
            <span class="o">}</span>

            <span class="c">// Destroy the other instances (first instance gets destroyed by the tearDown() function)</span>
<span class="c"></span>            <span class="k">for</span><span class="o">(</span><span class="k">var</span> <span class="nx">i</span><span class="o">=</span><span class="m">1</span><span class="o">;</span> <span class="nx">i</span><span class="o">&lt;</span><span class="m">3</span><span class="o">;</span> <span class="nx">i</span><span class="o">++)</span> <span class="o">{</span>
                <span class="k">this</span><span class="o">[</span><span class="s2">&quot;dt&quot;</span><span class="o">+</span><span class="nx">i</span><span class="o">].</span><span class="nx">destroy</span><span class="o">();</span>
                <span class="k">this</span><span class="o">[</span><span class="s2">&quot;dt&quot;</span><span class="o">+</span><span class="nx">i</span><span class="o">]</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>

                <span class="k">if</span> <span class="o">(</span><span class="k">this</span><span class="o">[</span><span class="s2">&quot;container&quot;</span><span class="o">+</span><span class="nx">i</span><span class="o">]</span> <span class="o">!=</span> <span class="kc">null</span><span class="o">)</span> <span class="o">{</span>
                    <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">util</span><span class="o">.</span><span class="nx">Event</span><span class="o">.</span><span class="nx">purgeElement</span><span class="o">(</span><span class="k">this</span><span class="o">[</span><span class="s2">&quot;container&quot;</span><span class="o">+</span><span class="nx">i</span><span class="o">],</span> <span class="kc">true</span><span class="o">);</span>
                    <span class="nb">document</span><span class="o">.</span><span class="nx">body</span><span class="o">.</span><span class="nx">removeChild</span><span class="o">(</span><span class="k">this</span><span class="o">[</span><span class="s2">&quot;container&quot;</span><span class="o">+</span><span class="nx">i</span><span class="o">]);</span>
                <span class="o">}</span>

                <span class="k">this</span><span class="o">.</span><span class="nx">datasource</span> <span class="o">=</span> <span class="kc">null</span><span class="o">;</span>
            <span class="o">}</span>
        <span class="o">}</span>
    <span class="o">});</span>
    <span class="k">var</span> <span class="nx">dtConstructionTest</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">DataTableTestCase</span><span class="o">(</span><span class="nx">dtConstructionTemplate</span><span class="o">)</span>

    <span class="c">/**</span>
<span class="c">     *</span>
<span class="c">     *</span>
<span class="c">     * Tests DOM element getters.</span>
<span class="c">     *</span>
<span class="c">     *</span>
<span class="c">     */</span>
    <span class="k">var</span> <span class="nx">dtDomAccessorsTemplate</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">lang</span><span class="o">.</span><span class="nx">merge</span><span class="o">(</span><span class="nx">dtBaseTemplate</span><span class="o">,</span> <span class="o">{</span>
        <span class="nx">name</span><span class="o">:</span> <span class="s2">&quot;DataTable DOM Accessors Tests&quot;</span><span class="o">,</span>

        <span class="nx">testGetContainerEl</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>

            <span class="k">var</span> <span class="nx">elContainer</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getContainerEl</span><span class="o">();</span>
            
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="s2">&quot;div&quot;</span><span class="o">,</span> <span class="nx">elContainer</span><span class="o">.</span><span class="nx">tagName</span><span class="o">.</span><span class="nx">toLowerCase</span><span class="o">(),</span> <span class="s2">&quot;Expected a DIV element&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">true</span><span class="o">,</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">util</span><span class="o">.</span><span class="nx">Dom</span><span class="o">.</span><span class="nx">hasClass</span><span class="o">(</span><span class="nx">elContainer</span><span class="o">,</span> <span class="s2">&quot;yui-dt&quot;</span><span class="o">),</span> <span class="s2">&quot;Failed to apply yui-dt classname&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testGetMsgTbodyEl</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">elContainer</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getContainerEl</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">elTbody</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getMsgTbodyEl</span><span class="o">();</span>
            
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="s2">&quot;tbody&quot;</span><span class="o">,</span> <span class="nx">elTbody</span><span class="o">.</span><span class="nx">tagName</span><span class="o">.</span><span class="nx">toLowerCase</span><span class="o">(),</span> <span class="s2">&quot;Expected a TBODY element&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">elContainer</span><span class="o">.</span><span class="nx">lastChild</span><span class="o">.</span><span class="nx">tBodies</span><span class="o">[</span><span class="m">0</span><span class="o">],</span> <span class="nx">elTbody</span><span class="o">,</span> <span class="s2">&quot;Expected to get first TBODY element of the TABLE&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testGetTbodyEl</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">elContainer</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getContainerEl</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">elTbody</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">();</span>
            
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="s2">&quot;tbody&quot;</span><span class="o">,</span> <span class="nx">elTbody</span><span class="o">.</span><span class="nx">tagName</span><span class="o">.</span><span class="nx">toLowerCase</span><span class="o">(),</span> <span class="s2">&quot;Expected a TBODY element&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">elContainer</span><span class="o">.</span><span class="nx">lastChild</span><span class="o">.</span><span class="nx">tBodies</span><span class="o">[</span><span class="nx">elContainer</span><span class="o">.</span><span class="nx">lastChild</span><span class="o">.</span><span class="nx">tBodies</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">],</span> <span class="nx">elTbody</span><span class="o">,</span> <span class="s2">&quot;Expected to get last TBODY element of the TABLE&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testGetFirstTrEl</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            <span class="k">var</span> <span class="nx">elTbody</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getContainerEl</span><span class="o">().</span><span class="nx">lastChild</span><span class="o">.</span><span class="nx">tBodies</span><span class="o">[</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getContainerEl</span><span class="o">().</span><span class="nx">lastChild</span><span class="o">.</span><span class="nx">tBodies</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">];</span>

            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">elTbody</span><span class="o">.</span><span class="nx">rows</span><span class="o">[</span><span class="m">0</span><span class="o">],</span> <span class="nx">elRow</span><span class="o">,</span> <span class="s2">&quot;Expected to get first TR element of the TBODY&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Expected row and Record to be in sync&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testGetLastTrEl</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getLastTrEl</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">];</span>
            <span class="k">var</span> <span class="nx">elTbody</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getContainerEl</span><span class="o">().</span><span class="nx">lastChild</span><span class="o">.</span><span class="nx">tBodies</span><span class="o">[</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getContainerEl</span><span class="o">().</span><span class="nx">lastChild</span><span class="o">.</span><span class="nx">tBodies</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">];</span>

            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">elTbody</span><span class="o">.</span><span class="nx">rows</span><span class="o">[</span><span class="nx">elTbody</span><span class="o">.</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">],</span> <span class="nx">elRow</span><span class="o">,</span> <span class="s2">&quot;Expected to get last TR element of the TBODY&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Expected row and Record to be in sync&quot;</span><span class="o">);</span>
        <span class="o">},</span>
        
        <span class="nx">testGetTrEl</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTrEl</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">getId</span><span class="o">());</span>
            <span class="k">var</span> <span class="nx">elFirstTr</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>

            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">elFirstTr</span><span class="o">,</span> <span class="nx">elRow</span><span class="o">,</span> <span class="s2">&quot;By DOM ID: TR el mismatch&quot;</span><span class="o">);</span>

            <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTrEl</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">0</span><span class="o">]);</span>

            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">elFirstTr</span><span class="o">,</span> <span class="nx">elRow</span><span class="o">,</span> <span class="s2">&quot;By el ref: TR el mismatch&quot;</span><span class="o">);</span>

            <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTrEl</span><span class="o">(</span><span class="m">0</span><span class="o">);</span>

            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">elFirstTr</span><span class="o">,</span> <span class="nx">elRow</span><span class="o">,</span> <span class="s2">&quot;Page row index: TR el mismatch&quot;</span><span class="o">);</span>

            <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTrEl</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">]);</span>

            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">elFirstTr</span><span class="o">,</span> <span class="nx">elRow</span><span class="o">,</span> <span class="s2">&quot;Record instance: TR el mismatch&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testGetNextTrEl</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">elFirstTr</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            <span class="k">var</span> <span class="nx">elSecondTr</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">1</span><span class="o">];</span>
            <span class="k">var</span> <span class="nx">elTr</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getNextTrEl</span><span class="o">(</span><span class="nx">elFirstTr</span><span class="o">);</span>

            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">elSecondTr</span><span class="o">,</span> <span class="nx">elTr</span><span class="o">,</span> <span class="s2">&quot;Expected second TR element&quot;</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">elPenultimateTr</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">2</span><span class="o">];</span>
            <span class="k">var</span> <span class="nx">elLastTr</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">];</span>
            <span class="nx">elTr</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getNextTrEl</span><span class="o">(</span><span class="nx">elPenultimateTr</span><span class="o">);</span>

            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">elLastTr</span><span class="o">,</span> <span class="nx">elTr</span><span class="o">,</span> <span class="s2">&quot;Expected last TR element&quot;</span><span class="o">);</span>

            <span class="nx">elTr</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getNextTrEl</span><span class="o">(</span><span class="nx">elLastTr</span><span class="o">);</span>

            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">null</span><span class="o">,</span> <span class="nx">elTr</span><span class="o">,</span> <span class="s2">&quot;Expected null&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testGetPreviousTrEl</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">elFirstTr</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            <span class="k">var</span> <span class="nx">elTr</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getPreviousTrEl</span><span class="o">(</span><span class="nx">elFirstTr</span><span class="o">);</span>

            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">null</span><span class="o">,</span> <span class="nx">elTr</span><span class="o">,</span> <span class="s2">&quot;Expected null&quot;</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">elSecondTr</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">1</span><span class="o">];</span>
            <span class="nx">elTr</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getPreviousTrEl</span><span class="o">(</span><span class="nx">elSecondTr</span><span class="o">);</span>

            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">elFirstTr</span><span class="o">,</span> <span class="nx">elTr</span><span class="o">,</span> <span class="s2">&quot;Expected first TR element&quot;</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">elPenultimateTr</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">2</span><span class="o">];</span>
            <span class="k">var</span> <span class="nx">elLastTr</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">];</span>
            <span class="nx">elTr</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getPreviousTrEl</span><span class="o">(</span><span class="nx">elLastTr</span><span class="o">);</span>

            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">elPenultimateTr</span><span class="o">,</span> <span class="nx">elTr</span><span class="o">,</span> <span class="s2">&quot;Expected penultimate TR element&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testGetFirstTdEl</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            <span class="k">var</span> <span class="nx">oTestColumn</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oColumnSet</span><span class="o">.</span><span class="nx">keys</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            <span class="k">var</span> <span class="nx">elCell</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTdEl</span><span class="o">();</span>

            <span class="c">//Assert.areSame(dt.getId()+&quot;-bdrow0-cell0&quot;, elCell.id, &quot;Unexpected DOM ID&quot;);</span>
<span class="c"></span>            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">_elTbody</span><span class="o">.</span><span class="nx">rows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">],</span> <span class="nx">elCell</span><span class="o">,</span> <span class="s2">&quot;Unexpected DOM element&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameCell</span><span class="o">(</span><span class="nx">elCell</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">oTestColumn</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Expected cell, Record, and Column to be in sync&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testGetLastTdEl</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">nRowIndex</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_elTbody</span><span class="o">.</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">;</span>
            <span class="k">var</span> <span class="nx">nColumnIndex</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_elTbody</span><span class="o">.</span><span class="nx">rows</span><span class="o">[</span><span class="nx">nRowIndex</span><span class="o">].</span><span class="nx">cells</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">;</span>
            <span class="k">var</span> <span class="nx">oRecordSet</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">;</span>
            <span class="k">var</span> <span class="nx">oColumnSet</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oColumnSet</span><span class="o">;</span>
            <span class="k">var</span> <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="nx">oRecordSet</span><span class="o">.</span><span class="nx">getLength</span><span class="o">()-</span><span class="m">1</span><span class="o">];</span>
            <span class="k">var</span> <span class="nx">oTestColumn</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oColumnSet</span><span class="o">.</span><span class="nx">keys</span><span class="o">[</span><span class="nx">oColumnSet</span><span class="o">.</span><span class="nx">keys</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">];</span>
            <span class="k">var</span> <span class="nx">elCell</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getLastTdEl</span><span class="o">();</span>
    
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">_elTbody</span><span class="o">.</span><span class="nx">rows</span><span class="o">[</span><span class="nx">nRowIndex</span><span class="o">].</span><span class="nx">cells</span><span class="o">[</span><span class="nx">nColumnIndex</span><span class="o">],</span> <span class="nx">elCell</span><span class="o">,</span> <span class="s2">&quot;Unexpected DOM element&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameCell</span><span class="o">(</span><span class="nx">elCell</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">oTestColumn</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Expected cell, Record, and Column to be in sync&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testGetTdEl</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">elFirstTd</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>    
            <span class="k">var</span> <span class="nx">elCell</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTdEl</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">]);</span>

            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">elFirstTd</span><span class="o">,</span> <span class="nx">elCell</span><span class="o">,</span> <span class="s2">&quot;By el ref: TD el mismatch&quot;</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">oRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            <span class="k">var</span> <span class="nx">oColumn</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oColumnSet</span><span class="o">.</span><span class="nx">keys</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            <span class="nx">elCell</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTdEl</span><span class="o">({</span><span class="nx">record</span><span class="o">:</span><span class="nx">oRecord</span><span class="o">,</span> <span class="nx">column</span><span class="o">:</span><span class="nx">oColumn</span><span class="o">});</span>

            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">elFirstTd</span><span class="o">,</span> <span class="nx">elCell</span><span class="o">,</span> <span class="s2">&quot;By obj literal: TD el mismatch&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testGetTdLinerEl</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">elFirstTdLiner</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">firstChild</span><span class="o">;</span>
            <span class="k">var</span> <span class="nx">elLiner</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTdLinerEl</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">]);</span>

            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">elFirstTdLiner</span><span class="o">,</span> <span class="nx">elLiner</span><span class="o">,</span> <span class="s2">&quot;By el ref: liner el mismatch&quot;</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">oRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            <span class="k">var</span> <span class="nx">oColumn</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oColumnSet</span><span class="o">.</span><span class="nx">keys</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            <span class="nx">elLiner</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTdLinerEl</span><span class="o">({</span><span class="nx">record</span><span class="o">:</span><span class="nx">oRecord</span><span class="o">,</span> <span class="nx">column</span><span class="o">:</span><span class="nx">oColumn</span><span class="o">});</span>

            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">elFirstTdLiner</span><span class="o">,</span> <span class="nx">elLiner</span><span class="o">,</span> <span class="s2">&quot;By obj literal: liner el mismatch&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testGetNextTdEl</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">elFirstTd</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTdEl</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">elSecondTd</span> <span class="o">=</span> <span class="nx">elFirstTd</span><span class="o">.</span><span class="nx">nextSibling</span><span class="o">;</span>
            <span class="k">var</span> <span class="nx">elLastTd</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getLastTdEl</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">elPenultimateTd</span> <span class="o">=</span> <span class="nx">elLastTd</span><span class="o">.</span><span class="nx">previousSibling</span><span class="o">;</span>

            <span class="k">var</span> <span class="nx">elTd</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getNextTdEl</span><span class="o">(</span><span class="nx">elFirstTd</span><span class="o">);</span>

            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">elSecondTd</span><span class="o">,</span> <span class="nx">elTd</span><span class="o">,</span> <span class="s2">&quot;Expected second TD element&quot;</span><span class="o">);</span>

            <span class="nx">elTd</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getNextTdEl</span><span class="o">(</span><span class="nx">elPenultimateTd</span><span class="o">);</span>

            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">elLastTd</span><span class="o">,</span> <span class="nx">elTd</span><span class="o">,</span> <span class="s2">&quot;Expected last TD element&quot;</span><span class="o">);</span>

            <span class="nx">elTd</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getNextTdEl</span><span class="o">(</span><span class="nx">elLastTd</span><span class="o">);</span>

            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">null</span><span class="o">,</span> <span class="nx">elTd</span><span class="o">,</span> <span class="s2">&quot;Expected null&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testGetPreviousTdEl</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">elFirstTd</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTdEl</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">elSecondTd</span> <span class="o">=</span> <span class="nx">elFirstTd</span><span class="o">.</span><span class="nx">nextSibling</span><span class="o">;</span>
            <span class="k">var</span> <span class="nx">elLastTd</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getLastTdEl</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">elPenultimateTd</span> <span class="o">=</span> <span class="nx">elLastTd</span><span class="o">.</span><span class="nx">previousSibling</span><span class="o">;</span>

            <span class="k">var</span> <span class="nx">elTd</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getPreviousTdEl</span><span class="o">(</span><span class="nx">elFirstTd</span><span class="o">);</span>

            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">null</span><span class="o">,</span> <span class="nx">elTd</span><span class="o">,</span> <span class="s2">&quot;Expected null&quot;</span><span class="o">);</span>

            <span class="nx">elTd</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getPreviousTdEl</span><span class="o">(</span><span class="nx">elSecondTd</span><span class="o">);</span>

            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">elFirstTd</span><span class="o">,</span> <span class="nx">elTd</span><span class="o">,</span> <span class="s2">&quot;Expected first TD element&quot;</span><span class="o">);</span>

            <span class="nx">elTd</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getPreviousTdEl</span><span class="o">(</span><span class="nx">elLastTd</span><span class="o">);</span>
            
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">elPenultimateTd</span><span class="o">,</span> <span class="nx">elTd</span><span class="o">,</span> <span class="s2">&quot;Expected penultimate TD element&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testGetsAfterDeleteRow</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">oRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecord</span><span class="o">(</span><span class="m">0</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRow</span><span class="o">(</span><span class="m">0</span><span class="o">);</span>
            <span class="k">var</span> <span class="nx">elTestRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTrEl</span><span class="o">(</span><span class="nx">oRecord</span><span class="o">);</span>

            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">null</span><span class="o">,</span> <span class="nx">elTestRow</span><span class="o">,</span> <span class="s2">&quot;Expected null TR el returned&quot;</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">nTestIndex</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTrIndex</span><span class="o">(</span><span class="nx">oRecord</span><span class="o">);</span>

            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">null</span><span class="o">,</span> <span class="nx">nTestIndex</span><span class="o">,</span> <span class="s2">&quot;Expected null TR index returned&quot;</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecord</span><span class="o">(</span><span class="nx">oRecord</span><span class="o">);</span>

            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">null</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="s2">&quot;Expected null Record returned&quot;</span><span class="o">);</span>

            <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getRecord</span><span class="o">(</span><span class="nx">oRecord</span><span class="o">);</span>

            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">null</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="s2">&quot;Expected null Record returned (RecordSet method)&quot;</span><span class="o">);</span>
        <span class="o">}</span>
    <span class="o">});</span>
    <span class="k">var</span> <span class="nx">dtDomAccessorsTest</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">DataTableTestCase</span><span class="o">(</span><span class="nx">dtDomAccessorsTemplate</span><span class="o">);</span>

    <span class="c">/**</span>
<span class="c">     *</span>
<span class="c">     *</span>
<span class="c">     * Tests row mutation APIs.</span>
<span class="c">     *</span>
<span class="c">     *</span>
<span class="c">     */</span>
    <span class="k">var</span> <span class="nx">dtRowMutationTemplate</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">lang</span><span class="o">.</span><span class="nx">merge</span><span class="o">(</span><span class="nx">dtBaseTemplate</span><span class="o">,</span> <span class="o">{</span>
        <span class="nx">name</span><span class="o">:</span> <span class="s2">&quot;DataTable Row Mutation Tests&quot;</span><span class="o">,</span>

        <span class="nx">testAddRowInsert</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">addRow</span><span class="o">({</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;4a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;4b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;4c&quot;</span><span class="o">},</span> <span class="m">0</span><span class="o">);</span>
            
            <span class="k">var</span> <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            <span class="k">var</span> <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Expected row and Record to be in sync&quot;</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">aFirstRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-first&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one first row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in first position&quot;</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">aLastRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-last&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one last row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in last position&quot;</span><span class="o">);</span>
        <span class="o">},</span>
        
        <span class="nx">testAddRowsInsert</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">addRow</span><span class="o">([{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;4a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;4b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;4c&quot;</span><span class="o">},{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;5a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;5b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;5c&quot;</span><span class="o">}],</span> <span class="m">0</span><span class="o">);</span>
            
            <span class="k">var</span> <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            <span class="k">var</span> <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Expected row and Record to be in sync&quot;</span><span class="o">);</span>

            <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">1</span><span class="o">];</span>
            <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getNextTrEl</span><span class="o">(</span><span class="nx">elRow</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Expected row and Record to be in sync&quot;</span><span class="o">);</span>

            <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">2</span><span class="o">];</span>
            <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getNextTrEl</span><span class="o">(</span><span class="nx">elRow</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Expected row and Record to be in sync&quot;</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">aFirstRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-first&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one first row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in first position&quot;</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">aLastRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-last&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one last row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in last position&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testAddRowAppend</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">addRow</span><span class="o">({</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;4a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;4b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;4c&quot;</span><span class="o">});</span>
            
            <span class="k">var</span> <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">4</span><span class="o">];</span>
            <span class="k">var</span> <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getLastTrEl</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Expected row and Record to be in sync&quot;</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">aFirstRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-first&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one first row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in first position&quot;</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">aLastRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-last&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one last row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in last         position&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testAddRowsAppend</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">addRows</span><span class="o">([{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;4a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;4b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;4c&quot;</span><span class="o">},{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;5a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;5b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;5c&quot;</span><span class="o">}]);</span>
            
            <span class="k">var</span> <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">5</span><span class="o">];</span>
            <span class="k">var</span> <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getLastTrEl</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Expected row and Record to be in sync&quot;</span><span class="o">);</span>

            <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">4</span><span class="o">];</span>
            <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getPreviousTrEl</span><span class="o">(</span><span class="nx">elRow</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Expected row and Record to be in sync&quot;</span><span class="o">);</span>

            <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">3</span><span class="o">];</span>
            <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getPreviousTrEl</span><span class="o">(</span><span class="nx">elRow</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Expected row and Record to be in sync&quot;</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">aFirstRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-first&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one first row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in first position&quot;</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">aLastRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-last&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one last row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in last         position&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testAddInvalidRow</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">oData</span> <span class="o">=</span> <span class="o">{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;4a&quot;</span><span class="o">,</span> <span class="nx">b</span><span class="o">:</span><span class="s2">&quot;4b&quot;</span><span class="o">,</span> <span class="nx">c</span><span class="o">:</span><span class="s2">&quot;4b&quot;</span><span class="o">};</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">addRow</span><span class="o">(</span><span class="nx">oData</span><span class="o">,</span> <span class="o">-</span><span class="m">1</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">oTestRecords</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getRecords</span><span class="o">();</span>
            <span class="k">for</span><span class="o">(</span><span class="k">var</span> <span class="nx">i</span><span class="o">=</span><span class="m">0</span><span class="o">,</span> <span class="nx">oTestData</span><span class="o">;</span> <span class="nx">i</span><span class="o">&lt;</span><span class="nx">oTestRecords</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span> <span class="nx">i</span><span class="o">++)</span> <span class="o">{</span>
                <span class="k">var</span> <span class="nx">oTestData</span> <span class="o">=</span> <span class="nx">oTestRecords</span><span class="o">[</span><span class="nx">i</span><span class="o">].</span><span class="nx">getData</span><span class="o">();</span>
                <span class="nx">Assert</span><span class="o">.</span><span class="nx">areNotSame</span><span class="o">(</span><span class="nx">oData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="nx">oTestData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="s2">&quot;Negative Record &quot;</span><span class="o">+</span><span class="nx">i</span><span class="o">+</span> <span class="s2">&quot; should not have been added&quot;</span><span class="o">);</span>
            <span class="o">}</span>

            <span class="nx">newData</span> <span class="o">=</span> <span class="o">{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;5a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;5b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;5c&quot;</span><span class="o">};</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">addRow</span><span class="o">(</span><span class="m">20</span><span class="o">,</span> <span class="nx">newData</span><span class="o">);</span>

            <span class="nx">oTestRecords</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getRecords</span><span class="o">();</span>
            <span class="k">for</span><span class="o">(</span><span class="nx">i</span><span class="o">=</span><span class="m">0</span><span class="o">;</span> <span class="nx">i</span><span class="o">&lt;</span><span class="nx">oTestRecords</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span> <span class="nx">i</span><span class="o">++)</span> <span class="o">{</span>
                <span class="nx">oTestData</span> <span class="o">=</span> <span class="nx">oTestRecords</span><span class="o">[</span><span class="nx">i</span><span class="o">].</span><span class="nx">getData</span><span class="o">();</span>
                <span class="nx">Assert</span><span class="o">.</span><span class="nx">areNotSame</span><span class="o">(</span><span class="nx">oData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="nx">oTestData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="s2">&quot;Out of range Record &quot;</span><span class="o">+</span><span class="nx">i</span><span class="o">+</span><span class="s2">&quot; should not have been added&quot;</span><span class="o">);</span>
            <span class="o">}</span>
        <span class="o">},</span>

        <span class="nx">testAddInvalidRows</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">aData</span> <span class="o">=</span> <span class="o">[{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;4a&quot;</span><span class="o">,</span> <span class="nx">b</span><span class="o">:</span><span class="s2">&quot;4b&quot;</span><span class="o">,</span> <span class="nx">c</span><span class="o">:</span><span class="s2">&quot;4b&quot;</span><span class="o">}];</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">addRows</span><span class="o">(</span><span class="nx">aData</span><span class="o">,</span> <span class="o">-</span><span class="m">1</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">oTestRecords</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getRecords</span><span class="o">();</span>
            <span class="k">for</span><span class="o">(</span><span class="k">var</span> <span class="nx">i</span><span class="o">=</span><span class="m">0</span><span class="o">,</span> <span class="nx">oTestData</span><span class="o">;</span> <span class="nx">i</span><span class="o">&lt;</span><span class="nx">oTestRecords</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span> <span class="nx">i</span><span class="o">++)</span> <span class="o">{</span>
                <span class="k">var</span> <span class="nx">oTestData</span> <span class="o">=</span> <span class="nx">oTestRecords</span><span class="o">[</span><span class="nx">i</span><span class="o">].</span><span class="nx">getData</span><span class="o">();</span>
                <span class="nx">Assert</span><span class="o">.</span><span class="nx">areNotSame</span><span class="o">(</span><span class="nx">aData</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">a</span><span class="o">,</span> <span class="nx">oTestData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="s2">&quot;Negative Records &quot;</span><span class="o">+</span><span class="nx">i</span><span class="o">+</span><span class="s2">&quot; should not have been added&quot;</span><span class="o">);</span>
            <span class="o">}</span>

            <span class="nx">aData</span> <span class="o">=</span> <span class="o">[{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;5a&quot;</span><span class="o">,</span> <span class="nx">b</span><span class="o">:</span><span class="s2">&quot;5b&quot;</span><span class="o">,</span> <span class="nx">c</span><span class="o">:</span><span class="s2">&quot;5b&quot;</span><span class="o">}];</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">addRows</span><span class="o">(</span><span class="m">20</span><span class="o">,</span> <span class="nx">newData</span><span class="o">);</span>

            <span class="nx">oTestRecords</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getRecords</span><span class="o">();</span>
            <span class="k">for</span><span class="o">(</span><span class="nx">i</span><span class="o">=</span><span class="m">0</span><span class="o">;</span> <span class="nx">i</span><span class="o">&lt;</span><span class="nx">oTestRecords</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span> <span class="nx">i</span><span class="o">++)</span> <span class="o">{</span>
                <span class="nx">oTestData</span> <span class="o">=</span> <span class="nx">oTestRecords</span><span class="o">[</span><span class="nx">i</span><span class="o">].</span><span class="nx">getData</span><span class="o">();</span>
                <span class="nx">Assert</span><span class="o">.</span><span class="nx">areNotSame</span><span class="o">(</span><span class="nx">aData</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">a</span><span class="o">,</span> <span class="nx">oTestData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="s2">&quot;Out of range Records &quot;</span><span class="o">+</span><span class="nx">i</span><span class="o">+</span><span class="s2">&quot; should not have updated&quot;</span><span class="o">);</span>
            <span class="o">}</span>
        <span class="o">},</span>

        <span class="nx">testUpdateRow</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">newData</span> <span class="o">=</span> <span class="o">{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;4a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;4b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;4c&quot;</span><span class="o">};</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">updateRow</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">newData</span><span class="o">);</span>
            
            <span class="k">var</span> <span class="nx">oData</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">getData</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">newData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="nx">oData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="s2">&quot;Failed to update by Record index (0)&quot;</span><span class="o">);</span>

            <span class="nx">newData</span> <span class="o">=</span> <span class="o">{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;8a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;8b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;8c&quot;</span><span class="o">};</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">updateRow</span><span class="o">(</span><span class="m">3</span><span class="o">,</span> <span class="nx">newData</span><span class="o">);</span>

            <span class="nx">oData</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">3</span><span class="o">].</span><span class="nx">getData</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">newData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="nx">oData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="s2">&quot;Failed to update by Record index (3)&quot;</span><span class="o">);</span>

            <span class="nx">newData</span> <span class="o">=</span> <span class="o">{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;5a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;5b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;5c&quot;</span><span class="o">};</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">updateRow</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getRecord</span><span class="o">(</span><span class="m">0</span><span class="o">),</span> <span class="nx">newData</span><span class="o">);</span>

            <span class="nx">oData</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">getData</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">newData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="nx">oData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="s2">&quot;Failed to update by Record instance&quot;</span><span class="o">);</span>

            <span class="nx">newData</span> <span class="o">=</span> <span class="o">{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;6a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;6b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;6c&quot;</span><span class="o">};</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">updateRow</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getRecord</span><span class="o">(</span><span class="m">0</span><span class="o">).</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">newData</span><span class="o">);</span>

            <span class="nx">oData</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">getData</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">newData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="nx">oData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="s2">&quot;Failed to update by TR el ID&quot;</span><span class="o">);</span>

            <span class="nx">newData</span> <span class="o">=</span> <span class="o">{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;7a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;7b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;7c&quot;</span><span class="o">};</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">updateRow</span><span class="o">(</span><span class="nx">Dom</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getRecord</span><span class="o">(</span><span class="m">0</span><span class="o">).</span><span class="nx">getId</span><span class="o">()),</span> <span class="nx">newData</span><span class="o">);</span>

            <span class="nx">oData</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">getData</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">newData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="nx">oData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="s2">&quot;Failed to update by TR el reference&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testUpdateInvalidRow</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">oRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecord</span><span class="o">(</span><span class="m">0</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRow</span><span class="o">(</span><span class="m">0</span><span class="o">);</span>
            <span class="k">var</span> <span class="nx">oData</span> <span class="o">=</span> <span class="o">{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;4a&quot;</span><span class="o">,</span> <span class="nx">b</span><span class="o">:</span><span class="s2">&quot;4b&quot;</span><span class="o">,</span> <span class="nx">c</span><span class="o">:</span><span class="s2">&quot;4b&quot;</span><span class="o">};</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">updateRow</span><span class="o">(</span><span class="nx">oRecord</span><span class="o">,</span> <span class="nx">oData</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">oTestRecords</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getRecords</span><span class="o">();</span>
            <span class="k">for</span><span class="o">(</span><span class="k">var</span> <span class="nx">i</span><span class="o">=</span><span class="m">0</span><span class="o">,</span> <span class="nx">oTestData</span><span class="o">;</span> <span class="nx">i</span><span class="o">&lt;</span><span class="nx">oTestRecords</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span> <span class="nx">i</span><span class="o">++)</span> <span class="o">{</span>
                <span class="k">var</span> <span class="nx">oTestData</span> <span class="o">=</span> <span class="nx">oTestRecords</span><span class="o">[</span><span class="nx">i</span><span class="o">].</span><span class="nx">getData</span><span class="o">();</span>
                <span class="nx">Assert</span><span class="o">.</span><span class="nx">areNotSame</span><span class="o">(</span><span class="nx">oData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="nx">oTestData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="s2">&quot;Non-existent Record &quot;</span><span class="o">+</span><span class="nx">i</span><span class="o">+</span><span class="s2">&quot;should not have updated&quot;</span><span class="o">);</span>
            <span class="o">}</span>

            <span class="nx">newData</span> <span class="o">=</span> <span class="o">{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;5a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;5b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;5c&quot;</span><span class="o">};</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">updateRow</span><span class="o">(-</span><span class="m">1</span><span class="o">,</span> <span class="nx">newData</span><span class="o">);</span>

            <span class="nx">oTestRecords</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getRecords</span><span class="o">();</span>
            <span class="k">for</span><span class="o">(</span><span class="nx">i</span><span class="o">=</span><span class="m">0</span><span class="o">;</span> <span class="nx">i</span><span class="o">&lt;</span><span class="nx">oTestRecords</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span> <span class="nx">i</span><span class="o">++)</span> <span class="o">{</span>
                <span class="nx">oTestData</span> <span class="o">=</span> <span class="nx">oTestRecords</span><span class="o">[</span><span class="nx">i</span><span class="o">].</span><span class="nx">getData</span><span class="o">();</span>
                <span class="nx">Assert</span><span class="o">.</span><span class="nx">areNotSame</span><span class="o">(</span><span class="nx">oData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="nx">oTestData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="s2">&quot;Negative Record &quot;</span><span class="o">+</span><span class="nx">i</span><span class="o">+</span><span class="s2">&quot;should not have updated&quot;</span><span class="o">);</span>
            <span class="o">}</span>

            <span class="nx">newData</span> <span class="o">=</span> <span class="o">{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;6a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;6b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;6c&quot;</span><span class="o">};</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">updateRow</span><span class="o">(</span><span class="m">4</span><span class="o">,</span> <span class="nx">newData</span><span class="o">);</span>

            <span class="nx">oTestRecords</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getRecords</span><span class="o">();</span>
            <span class="k">for</span><span class="o">(</span><span class="nx">i</span><span class="o">=</span><span class="m">0</span><span class="o">;</span> <span class="nx">i</span><span class="o">&lt;</span><span class="nx">oTestRecords</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span> <span class="nx">i</span><span class="o">++)</span> <span class="o">{</span>
                <span class="nx">oTestData</span> <span class="o">=</span> <span class="nx">oTestRecords</span><span class="o">[</span><span class="nx">i</span><span class="o">].</span><span class="nx">getData</span><span class="o">();</span>
                <span class="nx">Assert</span><span class="o">.</span><span class="nx">areNotSame</span><span class="o">(</span><span class="nx">oData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="nx">oTestData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="s2">&quot;Out of range Record &quot;</span><span class="o">+</span><span class="nx">i</span><span class="o">+</span><span class="s2">&quot;should not have updated&quot;</span><span class="o">);</span>
            <span class="o">}</span>
        <span class="o">},</span>

        <span class="nx">testUpdateRows</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">newData</span> <span class="o">=</span> <span class="o">[{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;4a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;4b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;4c&quot;</span><span class="o">},{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;5a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;5b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;5c&quot;</span><span class="o">}];</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">updateRows</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">newData</span><span class="o">);</span>
            
            <span class="k">var</span> <span class="nx">oData</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">getData</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">newData</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">a</span><span class="o">,</span> <span class="nx">oData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="s2">&quot;Failed to update by Record index (0)&quot;</span><span class="o">);</span>
            <span class="nx">oData</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">1</span><span class="o">].</span><span class="nx">getData</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">newData</span><span class="o">[</span><span class="m">1</span><span class="o">].</span><span class="nx">a</span><span class="o">,</span> <span class="nx">oData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="s2">&quot;Failed to update by Record index (0)&quot;</span><span class="o">);</span>

            <span class="nx">newData</span> <span class="o">=</span> <span class="o">[{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;6a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;6b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;6c&quot;</span><span class="o">},{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;7a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;7b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;7c&quot;</span><span class="o">}];</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">updateRows</span><span class="o">(</span><span class="m">3</span><span class="o">,</span> <span class="nx">newData</span><span class="o">);</span>

            <span class="nx">oData</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">3</span><span class="o">].</span><span class="nx">getData</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">newData</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">a</span><span class="o">,</span> <span class="nx">oData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="s2">&quot;Failed to update by Record index (0)&quot;</span><span class="o">);</span>
            <span class="nx">oData</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">4</span><span class="o">].</span><span class="nx">getData</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">newData</span><span class="o">[</span><span class="m">1</span><span class="o">].</span><span class="nx">a</span><span class="o">,</span> <span class="nx">oData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="s2">&quot;Failed to update by Record index (0)&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testUpdateInvalidRows</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">newData</span> <span class="o">=</span> <span class="o">[{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;4a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;4b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;4c&quot;</span><span class="o">},{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;5a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;5b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;5c&quot;</span><span class="o">}];</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">updateRows</span><span class="o">(-</span><span class="m">1</span><span class="o">,</span> <span class="nx">newData</span><span class="o">);</span>
            
            <span class="k">var</span> <span class="nx">oTestRecords</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getRecords</span><span class="o">();</span>
            <span class="k">for</span><span class="o">(</span><span class="k">var</span> <span class="nx">i</span><span class="o">=</span><span class="m">0</span><span class="o">,</span> <span class="nx">oTestData</span><span class="o">;</span> <span class="nx">i</span><span class="o">&lt;</span><span class="nx">oTestRecords</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span> <span class="nx">i</span><span class="o">++)</span> <span class="o">{</span>
                <span class="nx">oTestData</span> <span class="o">=</span> <span class="nx">oTestRecords</span><span class="o">[</span><span class="nx">i</span><span class="o">].</span><span class="nx">getData</span><span class="o">();</span>
                <span class="nx">Assert</span><span class="o">.</span><span class="nx">areNotSame</span><span class="o">(</span><span class="nx">newData</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">a</span><span class="o">,</span> <span class="nx">oTestData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="s2">&quot;Negative Record &quot;</span><span class="o">+</span><span class="nx">i</span><span class="o">+</span><span class="s2">&quot; should not have updated&quot;</span><span class="o">);</span>
            <span class="o">}</span>

            <span class="nx">newData</span> <span class="o">=</span> <span class="o">[{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;6a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;6b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;6c&quot;</span><span class="o">},{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;7a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;7b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;7c&quot;</span><span class="o">}];</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">updateRows</span><span class="o">(</span><span class="m">4</span><span class="o">,</span> <span class="nx">newData</span><span class="o">);</span>

            <span class="nx">oTestRecords</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getRecords</span><span class="o">();</span>
            <span class="k">for</span><span class="o">(</span><span class="nx">i</span><span class="o">=</span><span class="m">0</span><span class="o">;</span> <span class="nx">i</span><span class="o">&lt;</span><span class="nx">oTestRecords</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span> <span class="nx">i</span><span class="o">++)</span> <span class="o">{</span>
                <span class="nx">oTestData</span> <span class="o">=</span> <span class="nx">oTestRecords</span><span class="o">[</span><span class="nx">i</span><span class="o">].</span><span class="nx">getData</span><span class="o">();</span>
                <span class="nx">Assert</span><span class="o">.</span><span class="nx">areNotSame</span><span class="o">(</span><span class="nx">newData</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">a</span><span class="o">,</span> <span class="nx">oTestData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="s2">&quot;Out of range Record &quot;</span><span class="o">+</span><span class="nx">i</span><span class="o">+</span><span class="s2">&quot; should not have updated&quot;</span><span class="o">);</span>
            <span class="o">}</span>            
        <span class="o">},</span>

        <span class="nx">testUpdateRowsRenderLoopSize</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">(</span><span class="kc">null</span><span class="o">,</span> <span class="o">{</span><span class="nx">renderLoopSize</span><span class="o">:</span><span class="m">2</span><span class="o">});</span>
            <span class="k">var</span> <span class="nx">newData</span> <span class="o">=</span> <span class="o">[{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;4a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;4b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;4c&quot;</span><span class="o">},{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;5a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;5b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;5c&quot;</span><span class="o">}];</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">updateRows</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">newData</span><span class="o">);</span>
            
            <span class="k">var</span> <span class="nx">oData</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">getData</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">newData</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">a</span><span class="o">,</span> <span class="nx">oData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="s2">&quot;Failed to update by Record index (0)&quot;</span><span class="o">);</span>
            <span class="nx">oData</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">1</span><span class="o">].</span><span class="nx">getData</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">newData</span><span class="o">[</span><span class="m">1</span><span class="o">].</span><span class="nx">a</span><span class="o">,</span> <span class="nx">oData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="s2">&quot;Failed to update by Record index (0)&quot;</span><span class="o">);</span>

            <span class="nx">newData</span> <span class="o">=</span> <span class="o">[{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;6a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;6b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;6c&quot;</span><span class="o">},{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;7a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;7b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;7c&quot;</span><span class="o">}];</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">updateRows</span><span class="o">(</span><span class="m">3</span><span class="o">,</span> <span class="nx">newData</span><span class="o">);</span>

            <span class="nx">oData</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">3</span><span class="o">].</span><span class="nx">getData</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">newData</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">a</span><span class="o">,</span> <span class="nx">oData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="s2">&quot;Failed to update by Record index (0)&quot;</span><span class="o">);</span>
            <span class="nx">oData</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">4</span><span class="o">].</span><span class="nx">getData</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">newData</span><span class="o">[</span><span class="m">1</span><span class="o">].</span><span class="nx">a</span><span class="o">,</span> <span class="nx">oData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="s2">&quot;Failed to update by Record index (0)&quot;</span><span class="o">);</span>
        <span class="o">},</span>
        
        <span class="nx">testUpdateRowsPaginated</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">(</span><span class="kc">null</span><span class="o">,</span> <span class="o">{</span><span class="nx">paginator</span><span class="o">:</span><span class="k">new</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">Paginator</span><span class="o">({</span><span class="nx">rowsPerPage</span><span class="o">:</span><span class="m">2</span><span class="o">})});</span>
            <span class="k">var</span> <span class="nx">newData</span> <span class="o">=</span> <span class="o">[{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;4a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;4b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;4c&quot;</span><span class="o">},{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;5a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;5b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;5c&quot;</span><span class="o">}];</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">updateRows</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">newData</span><span class="o">);</span>
            
            <span class="k">var</span> <span class="nx">oData</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">getData</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">newData</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">a</span><span class="o">,</span> <span class="nx">oData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="s2">&quot;Failed to update by Record index (0)&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">(),</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">],</span> <span class="nx">dt</span><span class="o">,</span>  <span class="s2">&quot;First row mismatch&quot;</span><span class="o">);</span>
            <span class="nx">oData</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">1</span><span class="o">].</span><span class="nx">getData</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">newData</span><span class="o">[</span><span class="m">1</span><span class="o">].</span><span class="nx">a</span><span class="o">,</span> <span class="nx">oData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="s2">&quot;Failed to update by Record index (0)&quot;</span><span class="o">);</span>

            <span class="nx">newData</span> <span class="o">=</span> <span class="o">[{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;6a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;6b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;6c&quot;</span><span class="o">},{</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;7a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;7b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;7c&quot;</span><span class="o">}];</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">updateRows</span><span class="o">(</span><span class="m">3</span><span class="o">,</span> <span class="nx">newData</span><span class="o">);</span>

            <span class="nx">oData</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">3</span><span class="o">].</span><span class="nx">getData</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">newData</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">a</span><span class="o">,</span> <span class="nx">oData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="s2">&quot;Failed to update by Record index (0)&quot;</span><span class="o">);</span>
            <span class="nx">oData</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">4</span><span class="o">].</span><span class="nx">getData</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">newData</span><span class="o">[</span><span class="m">1</span><span class="o">].</span><span class="nx">a</span><span class="o">,</span> <span class="nx">oData</span><span class="o">.</span><span class="nx">a</span><span class="o">,</span> <span class="s2">&quot;Failed to update by Record index (0)&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testDeleteRow</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="c">//TODO: Test all the arg sigs of deleteRow() method</span>
<span class="c"></span>            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRow</span><span class="o">(</span><span class="m">0</span><span class="o">);</span>
            
            <span class="k">var</span> <span class="nx">nRecordsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getLength</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">nTrElsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">3</span><span class="o">,</span> <span class="nx">nRecordsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 3 Records left&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">3</span><span class="o">,</span> <span class="nx">nTrElsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 3 TR els left&quot;</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">aFirstRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-first&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one first row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in first position&quot;</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">aLastRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-last&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one last row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in last position&quot;</span><span class="o">);</span>

            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRow</span><span class="o">(</span><span class="m">0</span><span class="o">);</span>

            <span class="nx">nRecordsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getLength</span><span class="o">();</span>
            <span class="nx">nTrElsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">2</span><span class="o">,</span> <span class="nx">nRecordsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 2 Records left&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">2</span><span class="o">,</span> <span class="nx">nTrElsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 2 TR els left&quot;</span><span class="o">);</span>

            <span class="nx">aFirstRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-first&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one first row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in first position&quot;</span><span class="o">);</span>

            <span class="nx">aLastRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-last&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one last row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in last  position&quot;</span><span class="o">);</span>
                         
            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRow</span><span class="o">(</span><span class="m">0</span><span class="o">);</span>

            <span class="nx">nRecordsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getLength</span><span class="o">();</span>
            <span class="nx">nTrElsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">nRecordsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 1 Records left&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">nTrElsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 1 TR els left&quot;</span><span class="o">);</span>

            <span class="nx">aFirstRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-first&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one first row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in first position&quot;</span><span class="o">);</span>

            <span class="nx">aLastRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-last&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one last row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in last position&quot;</span><span class="o">);</span>
            
            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRow</span><span class="o">(</span><span class="m">0</span><span class="o">);</span>
            
            <span class="nx">nRecordsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getLength</span><span class="o">();</span>
            <span class="nx">nTrElsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">nRecordsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 0 Records left&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">nTrElsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 0 TR els left&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="s2">&quot;&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getMsgTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">style</span><span class="o">.</span><span class="nx">display</span><span class="o">,</span> <span class="s2">&quot;Expected message displayed&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">true</span><span class="o">,</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">hasClass</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getMsgTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">],</span> <span class="s2">&quot;yui-dt-empty&quot;</span><span class="o">),</span> <span class="s2">&quot;Expected empty message&quot;</span><span class="o">);</span>

            <span class="nx">aFirstRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-first&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected no first row&quot;</span><span class="o">);</span>

            <span class="nx">aLastRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-last&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected no last row&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testDeleteRowsForward</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="c">//TODO: Test all the arg sigs of deleteRows() method</span>
<span class="c"></span>            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRows</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="m">2</span><span class="o">);</span>
            
            <span class="k">var</span> <span class="nx">nRecordsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getLength</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">nTrElsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">2</span><span class="o">,</span> <span class="nx">nRecordsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 2 Records left&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">2</span><span class="o">,</span> <span class="nx">nTrElsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 2 TR els left&quot;</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">aFirstRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-first&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one first row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in first position&quot;</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">aLastRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-last&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one last row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in last position&quot;</span><span class="o">);</span>

            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRows</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="m">5</span><span class="o">);</span>
            
            <span class="nx">nRecordsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getLength</span><span class="o">();</span>
            <span class="nx">nTrElsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">nRecordsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 0 Records left&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">nTrElsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 0 TR els left&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="s2">&quot;&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getMsgTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">style</span><span class="o">.</span><span class="nx">display</span><span class="o">,</span> <span class="s2">&quot;Expected message displayed&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">true</span><span class="o">,</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">hasClass</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getMsgTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">],</span> <span class="s2">&quot;yui-dt-empty&quot;</span><span class="o">),</span> <span class="s2">&quot;Expected empty message&quot;</span><span class="o">);</span>

            <span class="nx">aFirstRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-first&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected no first row&quot;</span><span class="o">);</span>

            <span class="nx">aLastRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-last&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected no last row&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testDeleteRowsBackward</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="c">//TODO: Test all the arg sigs of deleteRows() method</span>
<span class="c"></span>            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRows</span><span class="o">(</span><span class="m">3</span><span class="o">,</span> <span class="o">-</span><span class="m">2</span><span class="o">);</span>
            
            <span class="k">var</span> <span class="nx">nRecordsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getLength</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">nTrElsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">2</span><span class="o">,</span> <span class="nx">nRecordsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 2 Records left&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">2</span><span class="o">,</span> <span class="nx">nTrElsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 2 TR els left&quot;</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">aFirstRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-first&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one first row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in first position&quot;</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">aLastRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-last&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one last row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in last position&quot;</span><span class="o">);</span>

            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRows</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="o">-</span><span class="m">2</span><span class="o">);</span>
            
            <span class="nx">nRecordsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getLength</span><span class="o">();</span>
            <span class="nx">nTrElsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">nRecordsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 0 Records left&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">nTrElsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 0 TR els left&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="s2">&quot;&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getMsgTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">style</span><span class="o">.</span><span class="nx">display</span><span class="o">,</span> <span class="s2">&quot;Expected message displayed&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">true</span><span class="o">,</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">hasClass</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getMsgTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">],</span> <span class="s2">&quot;yui-dt-empty&quot;</span><span class="o">),</span> <span class="s2">&quot;Expected empty message&quot;</span><span class="o">);</span>

            <span class="nx">aFirstRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-first&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected no first row&quot;</span><span class="o">);</span>

            <span class="nx">aLastRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-last&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected no last row&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testDeleteAppendThenInsert</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRow</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">());</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">addRow</span><span class="o">({</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;4a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;4b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;4c&quot;</span><span class="o">});</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">addRow</span><span class="o">({</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;5a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;5b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;5c&quot;</span><span class="o">},</span><span class="m">0</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Expected row and Record to be in sync&quot;</span><span class="o">);</span>

            <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getLastTrEl</span><span class="o">();</span>
            <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">];</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Expected row and Record to be in sync&quot;</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">aFirstRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-first&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one first row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in first position&quot;</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">aLastRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-last&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one last row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in last position&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testDeleteRowsInReverse</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRow</span><span class="o">(</span><span class="m">3</span><span class="o">);</span>
            
            <span class="k">var</span> <span class="nx">nRecordsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getLength</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">nTrElsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">3</span><span class="o">,</span> <span class="nx">nRecordsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 3 Records left&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">3</span><span class="o">,</span> <span class="nx">nTrElsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 3 TR els left&quot;</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">aFirstRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-first&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one first row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in first position&quot;</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">aLastRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-last&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one last row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in last position&quot;</span><span class="o">);</span>
            
            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRow</span><span class="o">(</span><span class="m">2</span><span class="o">);</span>
            
            <span class="nx">nRecordsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getLength</span><span class="o">();</span>
            <span class="nx">nTrElsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">2</span><span class="o">,</span> <span class="nx">nRecordsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 2 Records left&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">2</span><span class="o">,</span> <span class="nx">nTrElsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 2 TR els left&quot;</span><span class="o">);</span>

            <span class="nx">aFirstRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-first&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one first row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in first position&quot;</span><span class="o">);</span>

            <span class="nx">aLastRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-last&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one last row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in last position&quot;</span><span class="o">);</span>
            
            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRow</span><span class="o">(</span><span class="m">1</span><span class="o">);</span>
            
            <span class="nx">nRecordsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getLength</span><span class="o">();</span>
            <span class="nx">nTrElsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">nRecordsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 1 Records left&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">nTrElsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 1 TR els left&quot;</span><span class="o">);</span>

            <span class="nx">aFirstRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-first&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one first row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in first position&quot;</span><span class="o">);</span>

            <span class="nx">aLastRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-last&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one last row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in last position&quot;</span><span class="o">);</span>

            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRow</span><span class="o">(</span><span class="m">0</span><span class="o">);</span>
            
            <span class="nx">nRecordsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getLength</span><span class="o">();</span>
            <span class="nx">nTrElsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">nRecordsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 0 Records left&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">nTrElsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 0 TR els left&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="s2">&quot;&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getMsgTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">style</span><span class="o">.</span><span class="nx">display</span><span class="o">,</span> <span class="s2">&quot;Expected message displayed&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">true</span><span class="o">,</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">hasClass</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getMsgTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">],</span> <span class="s2">&quot;yui-dt-empty&quot;</span><span class="o">),</span> <span class="s2">&quot;Expected empty message&quot;</span><span class="o">);</span>

            <span class="nx">aFirstRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-first&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected no first row&quot;</span><span class="o">);</span>

            <span class="nx">aLastRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-last&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected no last row&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testDeleteThenInsertRows</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRow</span><span class="o">(</span><span class="m">0</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRow</span><span class="o">(</span><span class="m">0</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRow</span><span class="o">(</span><span class="m">0</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRow</span><span class="o">(</span><span class="m">0</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">addRow</span><span class="o">({</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;4a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;4b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;4c&quot;</span><span class="o">},</span> <span class="m">0</span><span class="o">);</span>
            
            <span class="k">var</span> <span class="nx">nRecordsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getLength</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">nTrElsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">nRecordsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 1 Record&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">nTrElsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 1 TR el&quot;</span><span class="o">);</span>
            
            <span class="k">var</span> <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Insert 1: Row mismatch&quot;</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">aFirstRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-first&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one first row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in first position&quot;</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">aLastRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-last&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one last row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in last position&quot;</span><span class="o">);</span>

            <span class="nx">dt</span><span class="o">.</span><span class="nx">addRow</span><span class="o">({</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;5a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;5b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;5c&quot;</span><span class="o">},</span> <span class="m">0</span><span class="o">);</span>
            
            <span class="nx">nRecordsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getLength</span><span class="o">();</span>
            <span class="nx">nTrElsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">2</span><span class="o">,</span> <span class="nx">nRecordsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 2 Records&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">2</span><span class="o">,</span> <span class="nx">nTrElsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 2 TR els&quot;</span><span class="o">);</span>
            
            <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">();</span>
            <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Insert 2: Row mismatch&quot;</span><span class="o">);</span>

            <span class="nx">aFirstRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-first&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one first row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in first position&quot;</span><span class="o">);</span>

            <span class="nx">aLastRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-last&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one last row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in last position&quot;</span><span class="o">);</span>

            <span class="nx">dt</span><span class="o">.</span><span class="nx">addRow</span><span class="o">({</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;6a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;6b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;6c&quot;</span><span class="o">},</span> <span class="m">0</span><span class="o">);</span>
            
            <span class="nx">nRecordsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getLength</span><span class="o">();</span>
            <span class="nx">nTrElsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">3</span><span class="o">,</span> <span class="nx">nRecordsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 3 Records&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">3</span><span class="o">,</span> <span class="nx">nTrElsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 3 TR els&quot;</span><span class="o">);</span>
            
            <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">();</span>
            <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecord</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">());</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Insert 3: Row mismatch&quot;</span><span class="o">);</span>

            <span class="nx">aFirstRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-first&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one first row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in first position&quot;</span><span class="o">);</span>

            <span class="nx">aLastRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-last&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one last row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in last position&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testDeleteInsertThenSortRows</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRow</span><span class="o">(</span><span class="m">0</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRow</span><span class="o">(</span><span class="m">0</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRow</span><span class="o">(</span><span class="m">0</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRow</span><span class="o">(</span><span class="m">0</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">addRow</span><span class="o">({</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;4a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;4b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;4c&quot;</span><span class="o">},</span> <span class="m">0</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">addRow</span><span class="o">({</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;5a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;5b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;5c&quot;</span><span class="o">},</span> <span class="m">0</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">addRow</span><span class="o">({</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;6a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;6b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;6c&quot;</span><span class="o">},</span> <span class="m">0</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">sortColumn</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getColumn</span><span class="o">(</span><span class="m">0</span><span class="o">));</span>

            <span class="k">var</span> <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Expected row and Record to be in sync&quot;</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">aFirstRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-first&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one first row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">aFirstRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in first position&quot;</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">aLastRows</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-last&quot;</span><span class="o">,</span> <span class="s2">&quot;tr&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one last row&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">,</span> <span class="nx">aLastRows</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">sectionRowIndex</span><span class="o">,</span> <span class="s2">&quot;Expected row in last position&quot;</span><span class="o">);</span>
        <span class="o">},</span>
        
        <span class="nx">testDeleteInvalidRow</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRow</span><span class="o">(-</span><span class="m">1</span><span class="o">);</span>
            
            <span class="k">var</span> <span class="nx">nRecordsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getLength</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">nTrElsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">4</span><span class="o">,</span> <span class="nx">nRecordsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 4 Records left&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">4</span><span class="o">,</span> <span class="nx">nTrElsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 4 TR els left&quot;</span><span class="o">);</span>
        
            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRow</span><span class="o">(</span><span class="m">4</span><span class="o">);</span>
            
            <span class="nx">nRecordsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getLength</span><span class="o">();</span>
            <span class="nx">nTrElsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">4</span><span class="o">,</span> <span class="nx">nRecordsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 4 Records left&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">4</span><span class="o">,</span> <span class="nx">nTrElsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 4 TR els left&quot;</span><span class="o">);</span>
        <span class="o">},</span>
        
        <span class="nx">testDeleteInvalidRows</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRows</span><span class="o">(-</span><span class="m">1</span><span class="o">,</span> <span class="m">2</span><span class="o">);</span>
            
            <span class="k">var</span> <span class="nx">nRecordsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getLength</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">nTrElsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">4</span><span class="o">,</span> <span class="nx">nRecordsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 4 Records left&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">4</span><span class="o">,</span> <span class="nx">nTrElsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 4 TR els left&quot;</span><span class="o">);</span>
        
            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRows</span><span class="o">(-</span><span class="m">1</span><span class="o">,</span> <span class="o">-</span><span class="m">2</span><span class="o">);</span>
            
            <span class="k">var</span> <span class="nx">nRecordsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getLength</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">nTrElsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">4</span><span class="o">,</span> <span class="nx">nRecordsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 4 Records left&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">4</span><span class="o">,</span> <span class="nx">nTrElsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 4 TR els left&quot;</span><span class="o">);</span>

            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRows</span><span class="o">(</span><span class="m">4</span><span class="o">,</span> <span class="o">-</span><span class="m">2</span><span class="o">);</span>
            
            <span class="nx">nRecordsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getLength</span><span class="o">();</span>
            <span class="nx">nTrElsLength</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">4</span><span class="o">,</span> <span class="nx">nRecordsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 4 Records left&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">4</span><span class="o">,</span> <span class="nx">nTrElsLength</span><span class="o">,</span> <span class="s2">&quot;Expected 4 TR els left&quot;</span><span class="o">);</span>        
        <span class="o">}</span>
    <span class="o">});</span>
    <span class="k">var</span> <span class="nx">dtRowMutationTest</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">DataTableTestCase</span><span class="o">(</span><span class="nx">dtRowMutationTemplate</span><span class="o">);</span>

    <span class="c">/**</span>
<span class="c">     *</span>
<span class="c">     *</span>
<span class="c">     * Tests sorting APIs.</span>
<span class="c">     *</span>
<span class="c">     *</span>
<span class="c">     */</span>
    <span class="k">var</span> <span class="nx">dtSortingTemplate</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">lang</span><span class="o">.</span><span class="nx">merge</span><span class="o">(</span><span class="nx">dtBaseTemplate</span><span class="o">,</span> <span class="o">{</span>
        <span class="nx">name</span><span class="o">:</span> <span class="s2">&quot;DataTable Sorting Tests&quot;</span><span class="o">,</span>
        
       <span class="nx">dsData</span><span class="o">:</span> <span class="o">[</span>
            <span class="o">{</span><span class="nx">a</span><span class="o">:</span><span class="m">0</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;zero&quot;</span><span class="o">},</span>
            <span class="o">{</span><span class="nx">a</span><span class="o">:</span><span class="m">1</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;one&quot;</span><span class="o">},</span>
            <span class="o">{</span><span class="nx">a</span><span class="o">:</span><span class="m">2</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;two&quot;</span><span class="o">},</span>
            <span class="o">{</span><span class="nx">a</span><span class="o">:</span><span class="m">3</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;three&quot;</span><span class="o">}</span>
        <span class="o">],</span>
            
        <span class="nx">dsConfig</span><span class="o">:</span> <span class="o">{</span>
            <span class="nx">responseType</span><span class="o">:</span><span class="nx">YAHOO</span><span class="o">.</span><span class="nx">util</span><span class="o">.</span><span class="nx">DataSource</span><span class="o">.</span><span class="nx">TYPE_JSARRAY</span><span class="o">,</span>
            <span class="nx">responseSchema</span><span class="o">:{</span><span class="nx">fields</span><span class="o">:[</span><span class="s2">&quot;a&quot;</span><span class="o">,</span><span class="s2">&quot;b&quot;</span><span class="o">]}</span>
        <span class="o">},</span>

        <span class="nx">columns</span><span class="o">:</span> <span class="o">[</span>
            <span class="o">{</span><span class="nx">key</span><span class="o">:</span><span class="s2">&quot;a&quot;</span><span class="o">,</span><span class="k">label</span><span class="o">:</span><span class="s2">&quot;numbers&quot;</span><span class="o">,</span><span class="nx">sortable</span><span class="o">:</span><span class="kc">true</span><span class="o">},</span>
            <span class="o">{</span><span class="nx">key</span><span class="o">:</span><span class="s2">&quot;b&quot;</span><span class="o">,</span><span class="k">label</span><span class="o">:</span><span class="s2">&quot;strings&quot;</span><span class="o">,</span><span class="nx">sortable</span><span class="o">:</span><span class="kc">true</span><span class="o">}</span>
        <span class="o">],</span>

        <span class="nx">testSortByElementClick</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">oColumn</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getColumn</span><span class="o">(</span><span class="m">1</span><span class="o">);</span>
            <span class="k">var</span> <span class="nx">el</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getThEl</span><span class="o">(</span><span class="nx">oColumn</span><span class="o">);</span>
            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">);</span>
            <span class="k">var</span> <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Click TH: Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Click TH: Row mismatch&quot;</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">childEl</span> <span class="o">=</span> <span class="nx">el</span><span class="o">.</span><span class="nx">firstChild</span><span class="o">;</span>
            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">childEl</span><span class="o">);</span>
            <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">();</span>
            <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="s2">&quot;zero&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecord</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">()).</span><span class="nx">getData</span><span class="o">(</span><span class="s2">&quot;b&quot;</span><span class="o">),</span> <span class="s2">&quot;Click container: Unexpected data&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Click container: Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Click container: Row mismatch&quot;</span><span class="o">);</span>
            
            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">childEl</span><span class="o">);</span>
            <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">();</span>
            <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="s2">&quot;one&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecord</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">()).</span><span class="nx">getData</span><span class="o">(</span><span class="s2">&quot;b&quot;</span><span class="o">),</span> <span class="s2">&quot;Click label: Unexpected data&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Click label: Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Click label: Row mismatch&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testSortNumber</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">oColumn</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getColumn</span><span class="o">(</span><span class="m">0</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">sortColumn</span><span class="o">(</span><span class="nx">oColumn</span><span class="o">);</span>
            
            <span class="k">var</span> <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Top asc: Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Top asc: Row mismatch&quot;</span><span class="o">);</span>

            <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getLastTrEl</span><span class="o">();</span>
            <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">];</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Bottom asc: Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Bottom asc: Row mismatch&quot;</span><span class="o">);</span>

            <span class="nx">dt</span><span class="o">.</span><span class="nx">sortColumn</span><span class="o">(</span><span class="nx">oColumn</span><span class="o">);</span>
            
            <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">();</span>
            <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Top desc: Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Top desc: Row mismatch&quot;</span><span class="o">);</span>

            <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getLastTrEl</span><span class="o">();</span>
            <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">];</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Bottom desc: Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Bottom desc: Row mismatch&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testSortString</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">oColumn</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getColumn</span><span class="o">(</span><span class="m">1</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">sortColumn</span><span class="o">(</span><span class="nx">oColumn</span><span class="o">);</span>

            <span class="k">var</span> <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Top asc: Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Top asc: Row mismatch&quot;</span><span class="o">);</span>

            <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getLastTrEl</span><span class="o">();</span>
            <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">];</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Bottom asc: Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Bottom asc: Row mismatch&quot;</span><span class="o">);</span>

            <span class="nx">dt</span><span class="o">.</span><span class="nx">sortColumn</span><span class="o">(</span><span class="nx">oColumn</span><span class="o">);</span>
            
            <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">();</span>
            <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Top desc: Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Top desc: Row mismatch&quot;</span><span class="o">);</span>

            <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getLastTrEl</span><span class="o">();</span>
            <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">];</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Bottom desc: Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Bottom desc: Row mismatch&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testInsertThenSort</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">addRow</span><span class="o">({</span><span class="nx">a</span><span class="o">:</span><span class="m">4</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;four&quot;</span><span class="o">},</span> <span class="m">0</span><span class="o">)</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">sortColumn</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getColumn</span><span class="o">(</span><span class="m">1</span><span class="o">));</span>
            
            <span class="k">var</span> <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Top asc: Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Top asc: Row mismatch&quot;</span><span class="o">);</span>

            <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getLastTrEl</span><span class="o">();</span>
            <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">];</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Bottom asc: Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Bottom asc: Row mismatch&quot;</span><span class="o">);</span>
            
            <span class="nx">dt</span><span class="o">.</span><span class="nx">sortColumn</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getColumn</span><span class="o">(</span><span class="m">1</span><span class="o">));</span>

            <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">();</span>
            <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Top desc: Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Top desc: Row mismatch&quot;</span><span class="o">);</span>

            <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getLastTrEl</span><span class="o">();</span>
            <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">];</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Bottom desc: Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Bottom desc: Row mismatch&quot;</span><span class="o">);</span>
        <span class="o">},</span>
        
        <span class="nx">testSortThenAppend</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">sortColumn</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getColumn</span><span class="o">(</span><span class="m">1</span><span class="o">));</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">addRow</span><span class="o">({</span><span class="nx">a</span><span class="o">:</span><span class="m">4</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;four&quot;</span><span class="o">});</span>

            <span class="k">var</span> <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Top asc: Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Top asc: Row mismatch&quot;</span><span class="o">);</span>

            <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getLastTrEl</span><span class="o">();</span>
            <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">];</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Bottom asc: Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Bottom asc: Row mismatch&quot;</span><span class="o">);</span>

            <span class="nx">dt</span><span class="o">.</span><span class="nx">sortColumn</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getColumn</span><span class="o">(</span><span class="m">1</span><span class="o">));</span>
            
            <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">();</span>
            <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Top asc: Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Top desc: Row mismatch&quot;</span><span class="o">);</span>

            <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getLastTrEl</span><span class="o">();</span>
            <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">];</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Bottom desc: Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Bottom desc: Row mismatch&quot;</span><span class="o">);</span>
        <span class="o">},</span>
        
        <span class="nx">testDeleteAppendInsertThenSort</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRow</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">());</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">addRow</span><span class="o">({</span><span class="nx">a</span><span class="o">:</span><span class="m">4</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;four&quot;</span><span class="o">});</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">addRow</span><span class="o">({</span><span class="nx">a</span><span class="o">:</span><span class="m">5</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;five&quot;</span><span class="o">},</span><span class="m">0</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">sortColumn</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getColumn</span><span class="o">(</span><span class="m">1</span><span class="o">));</span>

            <span class="k">var</span> <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Row mismatch&quot;</span><span class="o">);</span>

            <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getLastTrEl</span><span class="o">();</span>
            <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">];</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Row mismatch&quot;</span><span class="o">);</span>
        <span class="o">}</span>
    <span class="o">});</span>
    <span class="k">var</span> <span class="nx">dtSortingTest</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">DataTableTestCase</span><span class="o">(</span><span class="nx">dtSortingTemplate</span><span class="o">);</span>
    
    <span class="c">/**</span>
<span class="c">     *</span>
<span class="c">     *</span>
<span class="c">     * Tests row selection APIs.</span>
<span class="c">     *</span>
<span class="c">     *</span>
<span class="c">     */</span>
    <span class="k">var</span> <span class="nx">dtRowSelectionTemplate</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">lang</span><span class="o">.</span><span class="nx">merge</span><span class="o">(</span><span class="nx">dtBaseTemplate</span><span class="o">,</span> <span class="o">{</span>
        <span class="nx">name</span><span class="o">:</span> <span class="s2">&quot;DataTable Row Selection Tests&quot;</span><span class="o">,</span>

        <span class="nx">testSelectUnselectByEl</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">();</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">selectRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">);</span>
            
            <span class="k">var</span> <span class="nx">aSelectedRows</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getSelectedRows</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">true</span><span class="o">,</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">util</span><span class="o">.</span><span class="nx">Dom</span><span class="o">.</span><span class="nx">hasClass</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="s2">&quot;yui-dt-selected&quot;</span><span class="o">),</span> <span class="s2">&quot;Failed to apply CSS&quot;</span><span class="o">);</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">contains</span><span class="o">(</span><span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="nx">aSelectedRows</span><span class="o">,</span> <span class="s2">&quot;Failed to select first row&quot;</span><span class="o">);</span>
            
            <span class="nx">dt</span><span class="o">.</span><span class="nx">unselectRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">);</span>
            
            <span class="nx">aSelectedRows</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getSelectedRows</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">false</span><span class="o">,</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">util</span><span class="o">.</span><span class="nx">Dom</span><span class="o">.</span><span class="nx">hasClass</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="s2">&quot;yui-dt-selected&quot;</span><span class="o">),</span> <span class="s2">&quot;Failed to remove CSS&quot;</span><span class="o">);</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">doesNotContain</span><span class="o">(</span><span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="nx">aSelectedRows</span><span class="o">,</span> <span class="s2">&quot;Failed to unselect first row&quot;</span><span class="o">);</span>
        <span class="o">},</span>
        
        <span class="nx">testSelectThenInsert</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">();</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">selectRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">addRow</span><span class="o">({</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;4a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;4b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;4c&quot;</span><span class="o">},</span> <span class="m">0</span><span class="o">);</span>
            
            <span class="k">var</span> <span class="nx">aSelectedRows</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getSelectedRows</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">elTestRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">1</span><span class="o">];</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">true</span><span class="o">,</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">util</span><span class="o">.</span><span class="nx">Dom</span><span class="o">.</span><span class="nx">hasClass</span><span class="o">(</span><span class="nx">elTestRow</span><span class="o">,</span> <span class="s2">&quot;yui-dt-selected&quot;</span><span class="o">),</span> <span class="s2">&quot;Failed to apply CSS&quot;</span><span class="o">);</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">contains</span><span class="o">(</span><span class="nx">elTestRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="nx">aSelectedRows</span><span class="o">,</span> <span class="s2">&quot;Second row should be selected&quot;</span><span class="o">);</span>

            <span class="nx">elTestRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areNotSame</span><span class="o">(</span><span class="kc">true</span><span class="o">,</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">util</span><span class="o">.</span><span class="nx">Dom</span><span class="o">.</span><span class="nx">hasClass</span><span class="o">(</span><span class="nx">elTestRow</span><span class="o">,</span> <span class="s2">&quot;yui-dt-selected&quot;</span><span class="o">),</span> <span class="s2">&quot;Unexpected CSS&quot;</span><span class="o">);</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">doesNotContain</span><span class="o">(</span><span class="nx">elTestRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="nx">aSelectedRows</span><span class="o">,</span> <span class="s2">&quot;First row should not be selected&quot;</span><span class="o">);</span>
        <span class="o">},</span>
        
        <span class="nx">testSingleSelect</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">oConfig</span> <span class="o">=</span> <span class="o">{</span>
                <span class="nx">selectionMode</span><span class="o">:</span><span class="s2">&quot;single&quot;</span>
            <span class="o">}</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">(</span><span class="kc">null</span><span class="o">,</span> <span class="nx">oConfig</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">subscribe</span><span class="o">(</span><span class="s2">&quot;rowClickEvent&quot;</span><span class="o">,</span><span class="nx">dt</span><span class="o">.</span><span class="nx">onEventSelectRow</span><span class="o">,</span><span class="nx">dt</span><span class="o">);</span>
            <span class="k">var</span> <span class="nx">el</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getRecord</span><span class="o">(</span><span class="m">0</span><span class="o">).</span><span class="nx">getId</span><span class="o">());</span>
            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">);</span>
            
            <span class="k">var</span> <span class="nx">aSelectedRows</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getSelectedRows</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">aSelectedEls</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-selected&quot;</span><span class="o">,</span> <span class="s2">&quot;*&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="k">var</span> <span class="nx">elTestRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">itemsAreSame</span><span class="o">([</span><span class="nx">elTestRow</span><span class="o">.</span><span class="nx">id</span><span class="o">],</span> <span class="nx">aSelectedRows</span><span class="o">,</span> <span class="s2">&quot;Expected only first row selected&quot;</span><span class="o">);</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">itemsAreSame</span><span class="o">([</span><span class="nx">el</span><span class="o">],</span> <span class="nx">aSelectedEls</span><span class="o">,</span> <span class="s2">&quot;Expected only first TR el selected&quot;</span><span class="o">);</span>

            <span class="nx">el</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getRecord</span><span class="o">(</span><span class="m">1</span><span class="o">).</span><span class="nx">getId</span><span class="o">());</span>
            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">);</span>
            <span class="nx">el</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getRecord</span><span class="o">(</span><span class="m">2</span><span class="o">).</span><span class="nx">getId</span><span class="o">());</span>
            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">);</span>
            <span class="nx">el</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getRecord</span><span class="o">(</span><span class="m">3</span><span class="o">).</span><span class="nx">getId</span><span class="o">());</span>
            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">);</span>
            
            <span class="nx">aSelectedRows</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getSelectedRows</span><span class="o">();</span>
            <span class="nx">aSelectedEls</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-selected&quot;</span><span class="o">,</span> <span class="s2">&quot;*&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="k">var</span> <span class="nx">elTestRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">3</span><span class="o">];</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">itemsAreSame</span><span class="o">([</span><span class="nx">elTestRow</span><span class="o">.</span><span class="nx">id</span><span class="o">],</span> <span class="nx">aSelectedRows</span><span class="o">,</span> <span class="s2">&quot;Expected only fourth row selected&quot;</span><span class="o">);</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">itemsAreSame</span><span class="o">([</span><span class="nx">el</span><span class="o">],</span> <span class="nx">aSelectedEls</span><span class="o">,</span> <span class="s2">&quot;Expected only fourth TR el selected&quot;</span><span class="o">);</span>
        <span class="o">},</span>
        
        <span class="nx">testShiftSelect</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">subscribe</span><span class="o">(</span><span class="s2">&quot;rowClickEvent&quot;</span><span class="o">,</span><span class="nx">dt</span><span class="o">.</span><span class="nx">onEventSelectRow</span><span class="o">,</span><span class="nx">dt</span><span class="o">);</span>
            <span class="k">var</span> <span class="nx">el</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getRecord</span><span class="o">(</span><span class="m">0</span><span class="o">).</span><span class="nx">getId</span><span class="o">());</span>
            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">);</span>
            <span class="nx">el</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getRecord</span><span class="o">(</span><span class="m">3</span><span class="o">).</span><span class="nx">getId</span><span class="o">());</span>
            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">,</span> <span class="o">{</span><span class="s2">&quot;shiftKey&quot;</span><span class="o">:</span><span class="kc">true</span><span class="o">});</span>
            
            <span class="k">var</span> <span class="nx">aSelectedRows</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getSelectedRows</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">aSelectedEls</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-selected&quot;</span><span class="o">,</span> <span class="s2">&quot;*&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="k">var</span> <span class="nx">aTestRecordIds</span> <span class="o">=</span> <span class="o">[</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">getId</span><span class="o">(),</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">1</span><span class="o">].</span><span class="nx">getId</span><span class="o">(),</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">2</span><span class="o">].</span><span class="nx">getId</span><span class="o">(),</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">3</span><span class="o">].</span><span class="nx">getId</span><span class="o">()</span>
            <span class="o">];</span>
            <span class="k">var</span> <span class="nx">aTestTrEls</span> <span class="o">=</span> <span class="o">[</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">0</span><span class="o">],</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">1</span><span class="o">],</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">2</span><span class="o">],</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">3</span><span class="o">]</span>
            <span class="o">];</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">itemsAreSame</span><span class="o">(</span><span class="nx">aTestRecordIds</span><span class="o">,</span> <span class="nx">aSelectedRows</span><span class="o">,</span> <span class="s2">&quot;Expected four rows selected&quot;</span><span class="o">);</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">itemsAreSame</span><span class="o">(</span><span class="nx">aTestTrEls</span><span class="o">,</span> <span class="nx">aSelectedEls</span><span class="o">,</span> <span class="s2">&quot;Expected four TR els selected&quot;</span><span class="o">);</span>

            <span class="nx">el</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getRecord</span><span class="o">(</span><span class="m">2</span><span class="o">).</span><span class="nx">getId</span><span class="o">());</span>
            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">);</span>
            
            <span class="nx">aSelectedRows</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getSelectedRows</span><span class="o">();</span>
            <span class="nx">aSelectedEls</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-selected&quot;</span><span class="o">,</span> <span class="s2">&quot;*&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">aTestRecordIds</span> <span class="o">=</span> <span class="o">[</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">2</span><span class="o">].</span><span class="nx">getId</span><span class="o">()</span>
            <span class="o">];</span>
            <span class="nx">aTestTrEls</span> <span class="o">=</span> <span class="o">[</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">2</span><span class="o">]</span>
            <span class="o">];</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">itemsAreSame</span><span class="o">(</span><span class="nx">aTestRecordIds</span><span class="o">,</span> <span class="nx">aSelectedRows</span><span class="o">,</span> <span class="s2">&quot;Expected only third row selected&quot;</span><span class="o">);</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">itemsAreSame</span><span class="o">(</span><span class="nx">aTestTrEls</span><span class="o">,</span> <span class="nx">aSelectedEls</span><span class="o">,</span> <span class="s2">&quot;Expected only third TR el selected&quot;</span><span class="o">);</span>

            <span class="nx">el</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getRecord</span><span class="o">(</span><span class="m">0</span><span class="o">).</span><span class="nx">getId</span><span class="o">());</span>
            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">,</span> <span class="o">{</span><span class="s2">&quot;shiftKey&quot;</span><span class="o">:</span><span class="kc">true</span><span class="o">});</span>
            
            <span class="nx">aSelectedRows</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getSelectedRows</span><span class="o">();</span>
            <span class="nx">aSelectedEls</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-selected&quot;</span><span class="o">,</span> <span class="s2">&quot;*&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">aTestRecordIds</span> <span class="o">=</span> <span class="o">[</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">2</span><span class="o">].</span><span class="nx">getId</span><span class="o">(),</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">1</span><span class="o">].</span><span class="nx">getId</span><span class="o">(),</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">getId</span><span class="o">()</span>
            <span class="o">];</span>
            <span class="nx">aTestTrEls</span> <span class="o">=</span> <span class="o">[</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">0</span><span class="o">],</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">1</span><span class="o">],</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">2</span><span class="o">]</span>
            <span class="o">];</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">itemsAreSame</span><span class="o">(</span><span class="nx">aTestRecordIds</span><span class="o">,</span> <span class="nx">aSelectedRows</span><span class="o">,</span> <span class="s2">&quot;Expected three rows selected&quot;</span><span class="o">);</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">itemsAreSame</span><span class="o">(</span><span class="nx">aTestTrEls</span><span class="o">,</span> <span class="nx">aSelectedEls</span><span class="o">,</span> <span class="s2">&quot;Expected three TR els selected&quot;</span><span class="o">);</span>
        <span class="o">},</span>
        
        <span class="nx">testUnselectAllRows</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">subscribe</span><span class="o">(</span><span class="s2">&quot;rowClickEvent&quot;</span><span class="o">,</span><span class="nx">dt</span><span class="o">.</span><span class="nx">onEventSelectRow</span><span class="o">,</span><span class="nx">dt</span><span class="o">);</span>
            <span class="k">var</span> <span class="nx">el</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getRecord</span><span class="o">(</span><span class="m">0</span><span class="o">).</span><span class="nx">getId</span><span class="o">());</span>
            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">);</span>
            <span class="nx">el</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getRecord</span><span class="o">(</span><span class="m">3</span><span class="o">).</span><span class="nx">getId</span><span class="o">());</span>
            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">,</span> <span class="o">{</span><span class="s2">&quot;shiftKey&quot;</span><span class="o">:</span><span class="kc">true</span><span class="o">});</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">unselectAllRows</span><span class="o">();</span>

            <span class="k">var</span> <span class="nx">aSelectedRows</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getSelectedRows</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">aSelectedEls</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-selected&quot;</span><span class="o">,</span> <span class="s2">&quot;*&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="k">var</span> <span class="nx">aTestRecordIds</span> <span class="o">=</span> <span class="o">[];</span>
            <span class="k">var</span> <span class="nx">aTestTrEls</span> <span class="o">=</span> <span class="o">[];</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">itemsAreSame</span><span class="o">(</span><span class="nx">aTestRecordIds</span><span class="o">,</span> <span class="nx">aSelectedRows</span><span class="o">,</span> <span class="s2">&quot;Shift-select: Expected no rows selected&quot;</span><span class="o">);</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">itemsAreSame</span><span class="o">(</span><span class="nx">aTestTrEls</span><span class="o">,</span> <span class="nx">aSelectedEls</span><span class="o">,</span> <span class="s2">&quot;Shift-select: Expected no TR els selected&quot;</span><span class="o">);</span>

            <span class="nx">el</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getRecord</span><span class="o">(</span><span class="m">1</span><span class="o">).</span><span class="nx">getId</span><span class="o">());</span>
            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">);</span>
            <span class="nx">el</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getRecord</span><span class="o">(</span><span class="m">3</span><span class="o">).</span><span class="nx">getId</span><span class="o">());</span>
            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">,</span> <span class="o">{</span><span class="s2">&quot;ctrlKey&quot;</span><span class="o">:</span><span class="kc">true</span><span class="o">});</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">unselectAllRows</span><span class="o">();</span>

            <span class="nx">aSelectedRows</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getSelectedRows</span><span class="o">();</span>
            <span class="nx">aSelectedEls</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-selected&quot;</span><span class="o">,</span> <span class="s2">&quot;*&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">itemsAreSame</span><span class="o">(</span><span class="nx">aTestRecordIds</span><span class="o">,</span> <span class="nx">aSelectedRows</span><span class="o">,</span> <span class="s2">&quot;Ctrl-select: Expected no rows selected&quot;</span><span class="o">);</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">itemsAreSame</span><span class="o">(</span><span class="nx">aTestTrEls</span><span class="o">,</span> <span class="nx">aSelectedEls</span><span class="o">,</span> <span class="s2">&quot;Ctrl-select: Expected no rows selected&quot;</span><span class="o">);</span>
        <span class="o">},</span>
        
        <span class="nx">testAppendX3ThenDeleteSingleSelectedFromTop</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">i</span><span class="o">;</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">(</span><span class="kc">null</span><span class="o">,</span> <span class="o">{</span><span class="nx">selectionMode</span><span class="o">:</span><span class="s2">&quot;single&quot;</span><span class="o">});</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">subscribe</span><span class="o">(</span><span class="s2">&quot;rowClickEvent&quot;</span><span class="o">,</span><span class="nx">dt</span><span class="o">.</span><span class="nx">onEventSelectRow</span><span class="o">,</span><span class="nx">dt</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">addRow</span><span class="o">({</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;4a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;4b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;4c&quot;</span><span class="o">});</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">addRow</span><span class="o">({</span><span class="nx">a</span><span class="o">:</span><span class="s2">&quot;5a&quot;</span><span class="o">,</span><span class="nx">b</span><span class="o">:</span><span class="s2">&quot;5b&quot;</span><span class="o">,</span><span class="nx">c</span><span class="o">:</span><span class="s2">&quot;5c&quot;</span><span class="o">});</span>
            <span class="k">var</span> <span class="nx">el</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getRecord</span><span class="o">(</span><span class="m">0</span><span class="o">).</span><span class="nx">getId</span><span class="o">());</span>
            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">);</span>
            <span class="k">var</span> <span class="nx">rows</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getSelectedRows</span><span class="o">();</span>
            <span class="k">for</span><span class="o">(</span><span class="nx">i</span><span class="o">=</span><span class="m">0</span><span class="o">;</span> <span class="nx">i</span><span class="o">&lt;</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span> <span class="nx">i</span><span class="o">++)</span> <span class="o">{</span>
                <span class="k">var</span> <span class="nx">row</span> <span class="o">=</span> <span class="nx">rows</span><span class="o">[</span><span class="nx">i</span><span class="o">];</span>
                <span class="c">//TODO: Support passing in Record ID to dt.getRecordIndex and rs.getRecordIndex</span>
<span class="c"></span>                <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRow</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordIndex</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getRecord</span><span class="o">(</span><span class="nx">row</span><span class="o">)));</span>
            <span class="o">}</span>
            
            <span class="k">var</span> <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">5</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getLength</span><span class="o">(),</span> <span class="s2">&quot;Expected 5 Records&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">5</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected 5 TR els&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Row mismatch&quot;</span><span class="o">);</span>

            <span class="nx">el</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getRecord</span><span class="o">(</span><span class="m">1</span><span class="o">).</span><span class="nx">getId</span><span class="o">());</span>
            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">);</span>
            <span class="nx">rows</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getSelectedRows</span><span class="o">();</span>
            <span class="k">for</span><span class="o">(</span><span class="nx">i</span><span class="o">=</span><span class="m">0</span><span class="o">;</span> <span class="nx">i</span><span class="o">&lt;</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">;</span> <span class="nx">i</span><span class="o">++)</span> <span class="o">{</span>
                <span class="k">var</span> <span class="nx">row</span> <span class="o">=</span> <span class="nx">rows</span><span class="o">[</span><span class="nx">i</span><span class="o">];</span>
                <span class="c">//TODO: Support passing in Record ID to dt.getRecordIndex and rs.getRecordIndex</span>
<span class="c"></span>                <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRow</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordIndex</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getRecord</span><span class="o">(</span><span class="nx">row</span><span class="o">)));</span>
            <span class="o">}</span>
            
            <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">();</span>
            <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">4</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">().</span><span class="nx">getLength</span><span class="o">(),</span> <span class="s2">&quot;Expected 4 Records&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">4</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected 4 TR els&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Row mismatch&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testIsSelected</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">();</span>
            
            <span class="c">// TR el reference agnst row selection</span>
<span class="c"></span>            <span class="nx">dt</span><span class="o">.</span><span class="nx">selectRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">true</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">isSelected</span><span class="o">(</span><span class="nx">elRow</span><span class="o">),</span> <span class="s2">&quot;Failed to detect selected row by TR&quot;</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">unselectRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">false</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">isSelected</span><span class="o">(</span><span class="nx">elRow</span><span class="o">),</span> <span class="s2">&quot;Failed to detect unselected row by TR&quot;</span><span class="o">);</span>
            
            <span class="c">// TD el reference agnst row selection</span>
<span class="c"></span>            <span class="nx">dt</span><span class="o">.</span><span class="nx">selectRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">.</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">]);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">true</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">isSelected</span><span class="o">(</span><span class="nx">elRow</span><span class="o">.</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">]),</span> <span class="s2">&quot;Failed to detect selected row by TD&quot;</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">unselectRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">.</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">]);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">false</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">isSelected</span><span class="o">(</span><span class="nx">elRow</span><span class="o">.</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">]),</span> <span class="s2">&quot;Failed to detect unselected by row TD&quot;</span><span class="o">);</span>

            <span class="c">// Child elements agnst row selection</span>
<span class="c"></span>            <span class="nx">dt</span><span class="o">.</span><span class="nx">selectRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">.</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">firstChild</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">true</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">isSelected</span><span class="o">(</span><span class="nx">elRow</span><span class="o">.</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">firstChild</span><span class="o">),</span> <span class="s2">&quot;Failed to detect selected row by liner el&quot;</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">unselectRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">.</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">firstChild</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">false</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">isSelected</span><span class="o">(</span><span class="nx">elRow</span><span class="o">.</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">firstChild</span><span class="o">),</span> <span class="s2">&quot;Failed to detect unselected by row liner el&quot;</span><span class="o">);</span>
            
            <span class="c">// TD el reference agnst cell selection</span>
<span class="c"></span>            <span class="nx">dt</span><span class="o">.</span><span class="nx">selectCell</span><span class="o">(</span><span class="nx">elRow</span><span class="o">.</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">]);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">true</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">isSelected</span><span class="o">(</span><span class="nx">elRow</span><span class="o">.</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">]),</span> <span class="s2">&quot;Failed to detect selected cell by TD&quot;</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">unselectCell</span><span class="o">(</span><span class="nx">elRow</span><span class="o">.</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">]);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">false</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">isSelected</span><span class="o">(</span><span class="nx">elRow</span><span class="o">.</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">]),</span> <span class="s2">&quot;Failed to detect unselected cell by TD&quot;</span><span class="o">);</span>

            <span class="c">// Child elements agnst cell selection</span>
<span class="c"></span>            <span class="nx">dt</span><span class="o">.</span><span class="nx">selectCell</span><span class="o">(</span><span class="nx">elRow</span><span class="o">.</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">firstChild</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">true</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">isSelected</span><span class="o">(</span><span class="nx">elRow</span><span class="o">.</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">firstChild</span><span class="o">),</span> <span class="s2">&quot;Failed to detect selected cell by liner el&quot;</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">unselectCell</span><span class="o">(</span><span class="nx">elRow</span><span class="o">.</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">firstChild</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">false</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">isSelected</span><span class="o">(</span><span class="nx">elRow</span><span class="o">.</span><span class="nx">cells</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">firstChild</span><span class="o">),</span> <span class="s2">&quot;Failed to detect unselected cell by liner el&quot;</span><span class="o">);</span>

            <span class="c">// Record instance</span>
<span class="c"></span>            <span class="nx">dt</span><span class="o">.</span><span class="nx">selectRow</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">]);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">true</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">isSelected</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">]),</span> <span class="s2">&quot;Failed to detect selected row by Record instance&quot;</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">unselectRow</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">]);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">false</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">isSelected</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">]),</span> <span class="s2">&quot;Failed to detect unselected row by Record instance&quot;</span><span class="o">);</span>
            
            <span class="c">// RecordSet index</span>
<span class="c"></span>            <span class="nx">dt</span><span class="o">.</span><span class="nx">selectRow</span><span class="o">(</span><span class="m">0</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">true</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">isSelected</span><span class="o">(</span><span class="m">0</span><span class="o">),</span> <span class="s2">&quot;Failed to detect selected row by RecordSet index&quot;</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">unselectRow</span><span class="o">(</span><span class="m">0</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">false</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">isSelected</span><span class="o">(</span><span class="m">0</span><span class="o">),</span> <span class="s2">&quot;Failed to detect unselected row by RecordSet index&quot;</span><span class="o">);</span>
            
            <span class="c">// {record: oRecord, column: oColumn}</span>
<span class="c"></span>            <span class="nx">dt</span><span class="o">.</span><span class="nx">selectCell</span><span class="o">({</span><span class="nx">record</span><span class="o">:</span><span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">],</span> <span class="nx">column</span><span class="o">:</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oColumnSet</span><span class="o">.</span><span class="nx">keys</span><span class="o">[</span><span class="m">0</span><span class="o">]});</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">true</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">isSelected</span><span class="o">({</span><span class="nx">record</span><span class="o">:</span><span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">],</span> <span class="nx">column</span><span class="o">:</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oColumnSet</span><span class="o">.</span><span class="nx">keys</span><span class="o">[</span><span class="m">0</span><span class="o">]}),</span> <span class="s2">&quot;Failed to detect selected cell by object literal&quot;</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">unselectCell</span><span class="o">({</span><span class="nx">record</span><span class="o">:</span><span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">],</span> <span class="nx">column</span><span class="o">:</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oColumnSet</span><span class="o">.</span><span class="nx">keys</span><span class="o">[</span><span class="m">0</span><span class="o">]});</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">false</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">isSelected</span><span class="o">({</span><span class="nx">record</span><span class="o">:</span><span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">],</span> <span class="nx">column</span><span class="o">:</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oColumnSet</span><span class="o">.</span><span class="nx">keys</span><span class="o">[</span><span class="m">0</span><span class="o">]}),</span> <span class="s2">&quot;Failed to detect unselected cell by object literal&quot;</span><span class="o">);</span>
        <span class="o">}</span>
    <span class="o">});</span>
    <span class="k">var</span> <span class="nx">dtRowSelectionTest</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">DataTableTestCase</span><span class="o">(</span><span class="nx">dtRowSelectionTemplate</span><span class="o">);</span>

    <span class="c">/**</span>
<span class="c">     *</span>
<span class="c">     *</span>
<span class="c">     * Tests cell selection APIs.</span>
<span class="c">     *</span>
<span class="c">     *</span>
<span class="c">     */</span>
    <span class="k">var</span> <span class="nx">dtCellSelectionTemplate</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">lang</span><span class="o">.</span><span class="nx">merge</span><span class="o">(</span><span class="nx">dtBaseTemplate</span><span class="o">,</span> <span class="o">{</span>
        <span class="nx">name</span><span class="o">:</span> <span class="s2">&quot;DataTable Row Selection Tests&quot;</span>
    <span class="o">});</span>
    <span class="k">var</span> <span class="nx">dtCellSelectionTest</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">DataTableTestCase</span><span class="o">(</span><span class="nx">dtCellSelectionTemplate</span><span class="o">);</span>
    
    <span class="c">/**</span>
<span class="c">     *</span>
<span class="c">     *</span>
<span class="c">     * Tests pagination APIs.</span>
<span class="c">     *</span>
<span class="c">     *</span>
<span class="c">     */</span>
    <span class="k">var</span> <span class="nx">dtPaginationTemplate</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">lang</span><span class="o">.</span><span class="nx">merge</span><span class="o">(</span><span class="nx">dtBaseTemplate</span><span class="o">,</span> <span class="o">{</span>
        <span class="nx">name</span><span class="o">:</span> <span class="s2">&quot;DataTable Pagination Tests&quot;</span><span class="o">,</span>
        
       <span class="nx">dsData</span><span class="o">:</span> <span class="o">[</span>
            <span class="o">{</span><span class="nx">a</span><span class="o">:</span><span class="m">0</span><span class="o">},{</span><span class="nx">a</span><span class="o">:</span><span class="m">1</span><span class="o">},{</span><span class="nx">a</span><span class="o">:</span><span class="m">2</span><span class="o">},{</span><span class="nx">a</span><span class="o">:</span><span class="m">3</span><span class="o">},{</span><span class="nx">a</span><span class="o">:</span><span class="m">4</span><span class="o">},</span>
            <span class="o">{</span><span class="nx">a</span><span class="o">:</span><span class="m">5</span><span class="o">},{</span><span class="nx">a</span><span class="o">:</span><span class="m">6</span><span class="o">},{</span><span class="nx">a</span><span class="o">:</span><span class="m">7</span><span class="o">},{</span><span class="nx">a</span><span class="o">:</span><span class="m">8</span><span class="o">},{</span><span class="nx">a</span><span class="o">:</span><span class="m">9</span><span class="o">},</span>
            <span class="o">{</span><span class="nx">a</span><span class="o">:</span><span class="m">10</span><span class="o">},{</span><span class="nx">a</span><span class="o">:</span><span class="m">11</span><span class="o">},{</span><span class="nx">a</span><span class="o">:</span><span class="m">12</span><span class="o">},{</span><span class="nx">a</span><span class="o">:</span><span class="m">13</span><span class="o">},{</span><span class="nx">a</span><span class="o">:</span><span class="m">14</span><span class="o">},</span>
            <span class="o">{</span><span class="nx">a</span><span class="o">:</span><span class="m">15</span><span class="o">},{</span><span class="nx">a</span><span class="o">:</span><span class="m">16</span><span class="o">},{</span><span class="nx">a</span><span class="o">:</span><span class="m">17</span><span class="o">},{</span><span class="nx">a</span><span class="o">:</span><span class="m">18</span><span class="o">},{</span><span class="nx">a</span><span class="o">:</span><span class="m">19</span><span class="o">},</span>
            <span class="o">{</span><span class="nx">a</span><span class="o">:</span><span class="m">20</span><span class="o">},{</span><span class="nx">a</span><span class="o">:</span><span class="m">21</span><span class="o">}</span>
        <span class="o">],</span>

        <span class="nx">dsConfig</span><span class="o">:</span> <span class="o">{</span>
            <span class="nx">responseType</span><span class="o">:</span><span class="nx">YAHOO</span><span class="o">.</span><span class="nx">util</span><span class="o">.</span><span class="nx">DataSource</span><span class="o">.</span><span class="nx">TYPE_JSARRAY</span><span class="o">,</span>
            <span class="nx">responseSchema</span><span class="o">:{</span><span class="nx">fields</span><span class="o">:[</span><span class="s2">&quot;a&quot;</span><span class="o">]}</span>
        <span class="o">},</span>

        <span class="nx">columns</span><span class="o">:</span> <span class="o">[{</span><span class="nx">key</span><span class="o">:</span><span class="s2">&quot;a&quot;</span><span class="o">,</span> <span class="nx">sortable</span><span class="o">:</span><span class="kc">true</span><span class="o">}],</span>

        <span class="nx">testPagination</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">oConfig</span> <span class="o">=</span> <span class="o">{</span>
                <span class="nx">paginator</span><span class="o">:</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">Paginator</span><span class="o">({</span><span class="nx">rowsPerPage</span><span class="o">:</span><span class="m">5</span><span class="o">})</span>
            <span class="o">}</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">(</span><span class="kc">null</span><span class="o">,</span> <span class="nx">oConfig</span><span class="o">);</span>
                <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">5</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="s2">&quot;paginator&quot;</span><span class="o">).</span><span class="nx">getTotalPages</span><span class="o">(),</span> <span class="s2">&quot;Expected 5 pages&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testPageThenSort</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">oConfig</span> <span class="o">=</span> <span class="o">{</span>
                <span class="nx">paginator</span><span class="o">:</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">Paginator</span><span class="o">({</span><span class="nx">rowsPerPage</span><span class="o">:</span><span class="m">5</span><span class="o">}),</span>
                <span class="nx">sortedBy</span><span class="o">:</span> <span class="o">{</span><span class="nx">key</span><span class="o">:</span><span class="s2">&quot;a&quot;</span><span class="o">}</span>
            <span class="o">}</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">(</span><span class="kc">null</span><span class="o">,</span> <span class="nx">oConfig</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="s2">&quot;paginator&quot;</span><span class="o">).</span><span class="nx">setPage</span><span class="o">(</span><span class="m">2</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">sortColumn</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getColumn</span><span class="o">(</span><span class="s2">&quot;a&quot;</span><span class="o">));</span>
            
            <span class="k">var</span> <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getFirstTrEl</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">];</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="s2">&quot;paginator&quot;</span><span class="o">).</span><span class="nx">getCurrentPage</span><span class="o">(),</span> <span class="s2">&quot;Expected to be on page 1&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Row mismatch&quot;</span><span class="o">);</span>

            <span class="nx">elRow</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getLastTrEl</span><span class="o">();</span>
            <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">.</span><span class="nx">length</span><span class="o">-</span><span class="m">1</span><span class="o">];</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oTestRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">(),</span> <span class="nx">elRow</span><span class="o">.</span><span class="nx">id</span><span class="o">,</span> <span class="s2">&quot;Unexpected DOM ID&quot;</span><span class="o">);</span>
            <span class="nx">DataTableAssert</span><span class="o">.</span><span class="nx">areSameRow</span><span class="o">(</span><span class="nx">elRow</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="nx">dt</span><span class="o">,</span> <span class="s2">&quot;Row mismatch&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testDeleteRowsCurrentPage</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">oConfig</span> <span class="o">=</span> <span class="o">{</span>
                <span class="nx">paginator</span><span class="o">:</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">Paginator</span><span class="o">({</span><span class="nx">rowsPerPage</span><span class="o">:</span><span class="m">5</span><span class="o">})</span>
            <span class="o">}</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">(</span><span class="kc">null</span><span class="o">,</span> <span class="nx">oConfig</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRows</span><span class="o">(</span><span class="m">0</span><span class="o">,</span><span class="m">2</span><span class="o">);</span>
            
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">4</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="s2">&quot;paginator&quot;</span><span class="o">).</span><span class="nx">getTotalPages</span><span class="o">(),</span> <span class="s2">&quot;Expected 4 pages&quot;</span><span class="o">);</span>
        <span class="o">},</span>
        
         <span class="nx">testDeleteRowsDifferentPage</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">oConfig</span> <span class="o">=</span> <span class="o">{</span>
                <span class="nx">paginator</span><span class="o">:</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">Paginator</span><span class="o">({</span><span class="nx">rowsPerPage</span><span class="o">:</span><span class="m">5</span><span class="o">})</span>
            <span class="o">}</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">(</span><span class="kc">null</span><span class="o">,</span> <span class="nx">oConfig</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="s2">&quot;paginator&quot;</span><span class="o">).</span><span class="nx">setPage</span><span class="o">(</span><span class="m">5</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">deleteRows</span><span class="o">(</span><span class="m">0</span><span class="o">,</span><span class="m">2</span><span class="o">);</span>
            
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">4</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="s2">&quot;paginator&quot;</span><span class="o">).</span><span class="nx">getTotalPages</span><span class="o">(),</span> <span class="s2">&quot;Expected 4 pages&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">4</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="s2">&quot;paginator&quot;</span><span class="o">).</span><span class="nx">getCurrentPage</span><span class="o">(),</span> <span class="s2">&quot;Expected to be on page 4&quot;</span><span class="o">);</span>
        <span class="o">},</span>
        
        <span class="nx">testSingleSelectAcrossPages</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">oConfig</span> <span class="o">=</span> <span class="o">{</span>
                <span class="nx">paginator</span><span class="o">:</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">Paginator</span><span class="o">({</span><span class="nx">rowsPerPage</span><span class="o">:</span><span class="m">5</span><span class="o">}),</span>
                <span class="nx">selectionMode</span><span class="o">:</span><span class="s2">&quot;single&quot;</span>
            <span class="o">}</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">(</span><span class="kc">null</span><span class="o">,</span> <span class="nx">oConfig</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">subscribe</span><span class="o">(</span><span class="s2">&quot;rowClickEvent&quot;</span><span class="o">,</span><span class="nx">dt</span><span class="o">.</span><span class="nx">onEventSelectRow</span><span class="o">,</span><span class="nx">dt</span><span class="o">);</span>
            <span class="k">var</span> <span class="nx">el</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTrEl</span><span class="o">(</span><span class="m">0</span><span class="o">);</span> <span class="c">// record 0</span>
<span class="c"></span>            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="s2">&quot;paginator&quot;</span><span class="o">).</span><span class="nx">setPage</span><span class="o">(</span><span class="m">4</span><span class="o">);</span>
            <span class="nx">el</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTrEl</span><span class="o">(</span><span class="m">0</span><span class="o">);</span> <span class="c">// record 15</span>
<span class="c"></span>            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">);</span>
            
            <span class="k">var</span> <span class="nx">aSelectedRows</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getSelectedRows</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">aSelectedEls</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-selected&quot;</span><span class="o">,</span> <span class="s2">&quot;*&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="k">var</span> <span class="nx">aTestRecords</span> <span class="o">=</span> <span class="o">[</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">15</span><span class="o">].</span><span class="nx">getId</span><span class="o">()</span>
            <span class="o">];</span>
            <span class="k">var</span> <span class="nx">aTestTrEls</span> <span class="o">=</span> <span class="o">[</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">0</span><span class="o">]</span>
            <span class="o">];</span>

            <span class="nx">dt</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="s2">&quot;paginator&quot;</span><span class="o">).</span><span class="nx">setPage</span><span class="o">(</span><span class="m">1</span><span class="o">);</span>
            
            <span class="nx">aSelectedRows</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getSelectedRows</span><span class="o">();</span>
            <span class="nx">aSelectedEls</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-selected&quot;</span><span class="o">,</span> <span class="s2">&quot;*&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">1</span><span class="o">,</span> <span class="nx">aSelectedRows</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected one Record to still be selected&quot;</span><span class="o">);</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">itemsAreSame</span><span class="o">(</span><span class="nx">aTestRecords</span><span class="o">,</span> <span class="nx">aSelectedRows</span><span class="o">,</span> <span class="s2">&quot;Expected last record to still be selected&quot;</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">aSelectedEls</span><span class="o">.</span><span class="nx">length</span><span class="o">,</span> <span class="s2">&quot;Expected no TR els selected&quot;</span><span class="o">);</span>
        <span class="o">},</span>
        
        <span class="nx">testSingleSelectAcrossPagesAfterSort</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">oConfig</span> <span class="o">=</span> <span class="o">{</span>
                <span class="nx">paginator</span><span class="o">:</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">Paginator</span><span class="o">({</span><span class="nx">rowsPerPage</span><span class="o">:</span><span class="m">5</span><span class="o">}),</span>
                <span class="nx">selectionMode</span><span class="o">:</span><span class="s2">&quot;single&quot;</span><span class="o">,</span>
                <span class="nx">sortedBy</span><span class="o">:</span> <span class="o">{</span><span class="nx">key</span><span class="o">:</span><span class="s2">&quot;a&quot;</span><span class="o">}</span>
            <span class="o">}</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">(</span><span class="kc">null</span><span class="o">,</span> <span class="nx">oConfig</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">subscribe</span><span class="o">(</span><span class="s2">&quot;rowClickEvent&quot;</span><span class="o">,</span><span class="nx">dt</span><span class="o">.</span><span class="nx">onEventSelectRow</span><span class="o">,</span><span class="nx">dt</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="s2">&quot;paginator&quot;</span><span class="o">).</span><span class="nx">setPage</span><span class="o">(</span><span class="m">4</span><span class="o">);</span>
            <span class="k">var</span> <span class="nx">el</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTrEl</span><span class="o">(</span><span class="m">0</span><span class="o">);</span> <span class="c">// record 15</span>
<span class="c"></span>            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">sortColumn</span><span class="o">(</span><span class="nx">dt</span><span class="o">.</span><span class="nx">getColumn</span><span class="o">(</span><span class="m">0</span><span class="o">));</span>
            <span class="nx">el</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTrEl</span><span class="o">(</span><span class="m">0</span><span class="o">);</span> <span class="c">// record 0</span>
<span class="c"></span>            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">);</span>
            
            <span class="k">var</span> <span class="nx">aSelectedRows</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getSelectedRows</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">aSelectedEls</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-selected&quot;</span><span class="o">,</span> <span class="s2">&quot;*&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="k">var</span> <span class="nx">aTestRecords</span> <span class="o">=</span> <span class="o">[</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">getId</span><span class="o">()</span>
            <span class="o">];</span>
            <span class="k">var</span> <span class="nx">aTestTrEls</span> <span class="o">=</span> <span class="o">[</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">0</span><span class="o">]</span>
            <span class="o">];</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">itemsAreSame</span><span class="o">(</span><span class="nx">aTestRecords</span><span class="o">,</span> <span class="nx">aSelectedRows</span><span class="o">,</span> <span class="s2">&quot;Expected only last row of first page (Record index 4) selected&quot;</span><span class="o">);</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">itemsAreSame</span><span class="o">(</span><span class="nx">aTestTrEls</span><span class="o">,</span> <span class="nx">aSelectedEls</span><span class="o">,</span> <span class="s2">&quot;Expected only last TR el selected&quot;</span><span class="o">);</span>
            
            <span class="nx">dt</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="s2">&quot;paginator&quot;</span><span class="o">).</span><span class="nx">setPage</span><span class="o">(</span><span class="m">3</span><span class="o">);</span>
            <span class="nx">el</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTrEl</span><span class="o">(</span><span class="m">2</span><span class="o">);</span> <span class="c">// record 12</span>
<span class="c"></span>            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">);</span>
            
            <span class="nx">aSelectedRows</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getSelectedRows</span><span class="o">();</span>
            <span class="nx">aSelectedEls</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-selected&quot;</span><span class="o">,</span> <span class="s2">&quot;*&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">aTestRecords</span> <span class="o">=</span> <span class="o">[</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">12</span><span class="o">].</span><span class="nx">getId</span><span class="o">()</span>
            <span class="o">];</span>
            <span class="nx">aTestTrEls</span> <span class="o">=</span> <span class="o">[</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">2</span><span class="o">]</span>
            <span class="o">];</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">itemsAreSame</span><span class="o">(</span><span class="nx">aTestRecords</span><span class="o">,</span> <span class="nx">aSelectedRows</span><span class="o">,</span> <span class="s2">&quot;Expected only third row of third page (Record index 12) selected&quot;</span><span class="o">);</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">itemsAreSame</span><span class="o">(</span><span class="nx">aTestTrEls</span><span class="o">,</span> <span class="nx">aSelectedEls</span><span class="o">,</span> <span class="s2">&quot;Expected only third TR el selected&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testShiftSelectAcrossPages</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">oConfig</span> <span class="o">=</span> <span class="o">{</span>
                <span class="nx">paginator</span><span class="o">:</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">Paginator</span><span class="o">({</span><span class="nx">rowsPerPage</span><span class="o">:</span><span class="m">5</span><span class="o">}),</span>
                <span class="nx">selectionMode</span><span class="o">:</span><span class="s2">&quot;standard&quot;</span>
            <span class="o">}</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">(</span><span class="kc">null</span><span class="o">,</span> <span class="nx">oConfig</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">subscribe</span><span class="o">(</span><span class="s2">&quot;rowClickEvent&quot;</span><span class="o">,</span><span class="nx">dt</span><span class="o">.</span><span class="nx">onEventSelectRow</span><span class="o">,</span><span class="nx">dt</span><span class="o">);</span>
            <span class="k">var</span> <span class="nx">el</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTrEl</span><span class="o">(</span><span class="m">0</span><span class="o">);</span> <span class="c">// record 0</span>
<span class="c"></span>            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="s2">&quot;paginator&quot;</span><span class="o">).</span><span class="nx">setPage</span><span class="o">(</span><span class="m">2</span><span class="o">);</span>
            <span class="nx">el</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTrEl</span><span class="o">(</span><span class="m">1</span><span class="o">);</span> <span class="c">//record 6</span>
<span class="c"></span>            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">,</span> <span class="o">{</span><span class="s2">&quot;shiftKey&quot;</span><span class="o">:</span><span class="kc">true</span><span class="o">});</span>
            
            <span class="k">var</span> <span class="nx">aSelectedRows</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getSelectedRows</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">aSelectedEls</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-selected&quot;</span><span class="o">,</span> <span class="s2">&quot;*&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="k">var</span> <span class="nx">aTestRecords</span> <span class="o">=</span> <span class="o">[</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">0</span><span class="o">].</span><span class="nx">getId</span><span class="o">(),</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">1</span><span class="o">].</span><span class="nx">getId</span><span class="o">(),</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">2</span><span class="o">].</span><span class="nx">getId</span><span class="o">(),</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">3</span><span class="o">].</span><span class="nx">getId</span><span class="o">(),</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">4</span><span class="o">].</span><span class="nx">getId</span><span class="o">(),</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">5</span><span class="o">].</span><span class="nx">getId</span><span class="o">(),</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">6</span><span class="o">].</span><span class="nx">getId</span><span class="o">()</span>
            <span class="o">];</span>
            <span class="k">var</span> <span class="nx">aTestTrEls</span> <span class="o">=</span> <span class="o">[</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">0</span><span class="o">],</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">1</span><span class="o">]</span>
            <span class="o">];</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">itemsAreSame</span><span class="o">(</span><span class="nx">aTestRecords</span><span class="o">,</span> <span class="nx">aSelectedRows</span><span class="o">,</span> <span class="s2">&quot;Expected seven rows across two pages selected&quot;</span><span class="o">);</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">itemsAreSame</span><span class="o">(</span><span class="nx">aTestTrEls</span><span class="o">,</span> <span class="nx">aSelectedEls</span><span class="o">,</span> <span class="s2">&quot;Expected first two TR els selected&quot;</span><span class="o">);</span>

            <span class="nx">el</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTrEl</span><span class="o">(</span><span class="m">2</span><span class="o">);</span> <span class="c">// record 7</span>
<span class="c"></span>            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">);</span>
            
            <span class="nx">aSelectedRows</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getSelectedRows</span><span class="o">();</span>
            <span class="nx">aSelectedEls</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-selected&quot;</span><span class="o">,</span> <span class="s2">&quot;*&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">aTestRecords</span> <span class="o">=</span> <span class="o">[</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">7</span><span class="o">].</span><span class="nx">getId</span><span class="o">()</span>
            <span class="o">];</span>
            <span class="nx">aTestTrEls</span> <span class="o">=</span> <span class="o">[</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">2</span><span class="o">]</span>
            <span class="o">];</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">itemsAreSame</span><span class="o">(</span><span class="nx">aTestRecords</span><span class="o">,</span> <span class="nx">aSelectedRows</span><span class="o">,</span> <span class="s2">&quot;Expected only third row of second page selected&quot;</span><span class="o">);</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">itemsAreSame</span><span class="o">(</span><span class="nx">aTestTrEls</span><span class="o">,</span> <span class="nx">aSelectedEls</span><span class="o">,</span> <span class="s2">&quot;Expected only third TR el selected&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testUnselectAllRowsAcrossPages</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">oConfig</span> <span class="o">=</span> <span class="o">{</span>
                <span class="nx">paginator</span><span class="o">:</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">Paginator</span><span class="o">({</span><span class="nx">rowsPerPage</span><span class="o">:</span><span class="m">5</span><span class="o">}),</span>
                <span class="nx">selectionMode</span><span class="o">:</span><span class="s2">&quot;standard&quot;</span>
            <span class="o">}</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">(</span><span class="kc">null</span><span class="o">,</span> <span class="nx">oConfig</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">subscribe</span><span class="o">(</span><span class="s2">&quot;rowClickEvent&quot;</span><span class="o">,</span><span class="nx">dt</span><span class="o">.</span><span class="nx">onEventSelectRow</span><span class="o">,</span><span class="nx">dt</span><span class="o">);</span>
            <span class="k">var</span> <span class="nx">el</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTrEl</span><span class="o">(</span><span class="m">0</span><span class="o">);</span> <span class="c">// record 0</span>
<span class="c"></span>            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="s2">&quot;paginator&quot;</span><span class="o">).</span><span class="nx">setPage</span><span class="o">(</span><span class="m">2</span><span class="o">);</span>
            <span class="nx">el</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTrEl</span><span class="o">(</span><span class="m">1</span><span class="o">);</span> <span class="c">// record 6</span>
<span class="c"></span>            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">,</span> <span class="o">{</span><span class="s2">&quot;shiftKey&quot;</span><span class="o">:</span><span class="kc">true</span><span class="o">});</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">unselectAllRows</span><span class="o">();</span>

            <span class="k">var</span> <span class="nx">aSelectedRows</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getSelectedRows</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">aSelectedEls</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-selected&quot;</span><span class="o">,</span> <span class="s2">&quot;*&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="k">var</span> <span class="nx">aTestRecords</span> <span class="o">=</span> <span class="o">[];</span>
            <span class="k">var</span> <span class="nx">aTestTrEls</span> <span class="o">=</span> <span class="o">[];</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">itemsAreSame</span><span class="o">(</span><span class="nx">aTestRecords</span><span class="o">,</span> <span class="nx">aSelectedRows</span><span class="o">,</span> <span class="s2">&quot;Shift-select: Expected no rows on any page selected&quot;</span><span class="o">);</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">itemsAreSame</span><span class="o">(</span><span class="nx">aTestTrEls</span><span class="o">,</span> <span class="nx">aSelectedEls</span><span class="o">,</span> <span class="s2">&quot;Shift-select: Expected no TR els selected&quot;</span><span class="o">);</span>

            <span class="nx">el</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTrEl</span><span class="o">(</span><span class="m">2</span><span class="o">);</span> <span class="c">// record 7</span>
<span class="c"></span>            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">);</span>
            <span class="nx">el</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTrEl</span><span class="o">(</span><span class="m">4</span><span class="o">);</span> <span class="c">// record 9</span>
<span class="c"></span>            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">,</span> <span class="o">{</span><span class="s2">&quot;ctrlKey&quot;</span><span class="o">:</span><span class="kc">true</span><span class="o">});</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="s2">&quot;paginator&quot;</span><span class="o">).</span><span class="nx">setPage</span><span class="o">(</span><span class="m">3</span><span class="o">);</span>
            <span class="nx">el</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTrEl</span><span class="o">(</span><span class="m">3</span><span class="o">);</span> <span class="c">// record 13</span>
<span class="c"></span>            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">,</span> <span class="o">{</span><span class="s2">&quot;ctrlKey&quot;</span><span class="o">:</span><span class="kc">true</span><span class="o">});</span>
            <span class="nx">el</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTrEl</span><span class="o">(</span><span class="m">4</span><span class="o">);</span> <span class="c">// record 14</span>
<span class="c"></span>            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">,</span> <span class="o">{</span><span class="s2">&quot;ctrlKey&quot;</span><span class="o">:</span><span class="kc">true</span><span class="o">});</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">unselectAllRows</span><span class="o">();</span>

            <span class="nx">aSelectedRows</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getSelectedRows</span><span class="o">();</span>
            <span class="nx">aSelectedEls</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-selected&quot;</span><span class="o">,</span> <span class="s2">&quot;*&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">itemsAreSame</span><span class="o">(</span><span class="nx">aTestRecords</span><span class="o">,</span> <span class="nx">aSelectedRows</span><span class="o">,</span> <span class="s2">&quot;Ctrl-select: Expected no rows on any page selected&quot;</span><span class="o">);</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">itemsAreSame</span><span class="o">(</span><span class="nx">aTestTrEls</span><span class="o">,</span> <span class="nx">aSelectedEls</span><span class="o">,</span> <span class="s2">&quot;Ctrl-select: Expected no TR els selected&quot;</span><span class="o">);</span>
        <span class="o">},</span>


        <span class="nx">testSingleSelectAcrossRowsPerPage</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">oConfig</span> <span class="o">=</span> <span class="o">{</span>
                <span class="nx">paginator</span><span class="o">:</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">Paginator</span><span class="o">({</span><span class="nx">rowsPerPage</span><span class="o">:</span><span class="m">5</span><span class="o">}),</span>
                <span class="nx">selectionMode</span><span class="o">:</span><span class="s2">&quot;single&quot;</span>
            <span class="o">}</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">(</span><span class="kc">null</span><span class="o">,</span> <span class="nx">oConfig</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">subscribe</span><span class="o">(</span><span class="s2">&quot;rowClickEvent&quot;</span><span class="o">,</span><span class="nx">dt</span><span class="o">.</span><span class="nx">onEventSelectRow</span><span class="o">,</span><span class="nx">dt</span><span class="o">);</span>
            <span class="k">var</span> <span class="nx">el</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTrEl</span><span class="o">(</span><span class="m">0</span><span class="o">);</span> <span class="c">// record 0</span>
<span class="c"></span>            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="s2">&quot;paginator&quot;</span><span class="o">).</span><span class="nx">setPage</span><span class="o">(</span><span class="m">2</span><span class="o">);</span>
            <span class="nx">el</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTrEl</span><span class="o">(</span><span class="m">2</span><span class="o">);</span> <span class="c">// record 7</span>
<span class="c"></span>            <span class="nx">UserAction</span><span class="o">.</span><span class="nx">click</span><span class="o">(</span><span class="nx">el</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="s2">&quot;paginator&quot;</span><span class="o">).</span><span class="nx">setRowsPerPage</span><span class="o">(</span><span class="m">10</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="s2">&quot;paginator&quot;</span><span class="o">).</span><span class="nx">setPage</span><span class="o">(</span><span class="m">1</span><span class="o">);</span>
            <span class="c">//dt.get(&quot;paginator&quot;).setState({page:1,rowsPerPage:10});</span>
<span class="c"></span>            <span class="c">//dt.render();</span>
<span class="c"></span>            
            <span class="k">var</span> <span class="nx">aSelectedRows</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getSelectedRows</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">aSelectedEls</span> <span class="o">=</span> <span class="nx">Dom</span><span class="o">.</span><span class="nx">getElementsByClassName</span><span class="o">(</span><span class="s2">&quot;yui-dt-selected&quot;</span><span class="o">,</span> <span class="s2">&quot;*&quot;</span><span class="o">,</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">());</span>
            <span class="k">var</span> <span class="nx">aTestRecords</span> <span class="o">=</span> <span class="o">[</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">_oRecordSet</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">7</span><span class="o">].</span><span class="nx">getId</span><span class="o">()</span>
            <span class="o">];</span>
            <span class="k">var</span> <span class="nx">aTestTrEls</span> <span class="o">=</span> <span class="o">[</span>
                <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">7</span><span class="o">]</span>
            <span class="o">];</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">itemsAreSame</span><span class="o">(</span><span class="nx">aTestRecords</span><span class="o">,</span> <span class="nx">aSelectedRows</span><span class="o">,</span> <span class="s2">&quot;Expected only one row selected&quot;</span><span class="o">);</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">itemsAreSame</span><span class="o">(</span><span class="nx">aTestTrEls</span><span class="o">,</span> <span class="nx">aSelectedEls</span><span class="o">,</span> <span class="s2">&quot;Expected seventh TR el selected&quot;</span><span class="o">);</span>
        <span class="o">},</span>
        
        <span class="nx">testGetRecordAcrossPages</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">oConfig</span> <span class="o">=</span> <span class="o">{</span>
                <span class="nx">paginator</span><span class="o">:</span> <span class="k">new</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">Paginator</span><span class="o">({</span><span class="nx">rowsPerPage</span><span class="o">:</span><span class="m">2</span><span class="o">}),</span>
                <span class="nx">selectionMode</span><span class="o">:</span><span class="s2">&quot;single&quot;</span>
            <span class="o">}</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">(</span><span class="kc">null</span><span class="o">,</span> <span class="nx">oConfig</span><span class="o">);</span>
            <span class="nx">dt</span><span class="o">.</span><span class="nx">get</span><span class="o">(</span><span class="s2">&quot;paginator&quot;</span><span class="o">).</span><span class="nx">setPage</span><span class="o">(</span><span class="m">2</span><span class="o">);</span>

            <span class="c">// Get Record on this page</span>
<span class="c"></span>            <span class="k">var</span> <span class="nx">rs</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecordSet</span><span class="o">();</span>
            <span class="k">var</span> <span class="nx">oRecord</span> <span class="o">=</span> <span class="nx">rs</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">3</span><span class="o">];</span>
            <span class="k">var</span> <span class="nx">sRecordId</span> <span class="o">=</span> <span class="nx">oRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">();</span>

            <span class="k">var</span> <span class="nx">el</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getTbodyEl</span><span class="o">().</span><span class="nx">rows</span><span class="o">[</span><span class="m">1</span><span class="o">];</span>
            <span class="k">var</span> <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecord</span><span class="o">(</span><span class="nx">el</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oRecord</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="s2">&quot;Expected to get last Record by el reference&quot;</span><span class="o">);</span>

            <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecord</span><span class="o">(</span><span class="m">3</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oRecord</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="s2">&quot;Expected to get last Record by position index&quot;</span><span class="o">);</span>

            <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecord</span><span class="o">(</span><span class="nx">sRecordId</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oRecord</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="s2">&quot;Expected to get last Record by Record ID&quot;</span><span class="o">);</span>

            <span class="c">// Get Record on a different page</span>
<span class="c"></span>            <span class="nx">oRecord</span> <span class="o">=</span> <span class="nx">rs</span><span class="o">.</span><span class="nx">_records</span><span class="o">[</span><span class="m">1</span><span class="o">];</span>
            <span class="nx">sRecordId</span> <span class="o">=</span> <span class="nx">oRecord</span><span class="o">.</span><span class="nx">getId</span><span class="o">();</span>
            <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecord</span><span class="o">(</span><span class="nx">el</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areNotSame</span><span class="o">(</span><span class="nx">oRecord</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="s2">&quot;Last Record on page 1 should NOT match last Record on this page&quot;</span><span class="o">);</span>

            <span class="nx">oTestRecord</span> <span class="o">=</span> <span class="nx">dt</span><span class="o">.</span><span class="nx">getRecord</span><span class="o">(</span><span class="m">1</span><span class="o">);</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nx">oRecord</span><span class="o">,</span> <span class="nx">oTestRecord</span><span class="o">,</span> <span class="s2">&quot;Expected to get Record 0 by position index&quot;</span><span class="o">);</span>
        <span class="o">}</span>
    <span class="o">});</span>
    <span class="k">var</span> <span class="nx">dtPaginationTest</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">DataTableTestCase</span><span class="o">(</span><span class="nx">dtPaginationTemplate</span><span class="o">);</span>
    
    <span class="c">/**</span>
<span class="c">     *</span>
<span class="c">     *</span>
<span class="c">     * Tests the _cloneObject API.</span>
<span class="c">     *</span>
<span class="c">     *</span>
<span class="c">     */</span>
    <span class="k">var</span> <span class="nx">dtCloneObjectTemplate</span> <span class="o">=</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">lang</span><span class="o">.</span><span class="nx">merge</span><span class="o">(</span><span class="nx">dtBaseTemplate</span><span class="o">,</span> <span class="o">{</span>
        <span class="nx">name</span><span class="o">:</span> <span class="s2">&quot;DataTable Clone Object Tests&quot;</span><span class="o">,</span>
        
        <span class="nx">testUndefined</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">undefined</span><span class="o">,</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">DataTable</span><span class="o">.</span><span class="nx">_cloneObject</span><span class="o">(</span><span class="kc">undefined</span><span class="o">),</span> <span class="s2">&quot;Expected undefined&quot;</span><span class="o">);</span>
        <span class="o">},</span>

        <span class="nx">testNull</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">null</span><span class="o">,</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">DataTable</span><span class="o">.</span><span class="nx">_cloneObject</span><span class="o">(</span><span class="kc">null</span><span class="o">),</span> <span class="s2">&quot;Expected null&quot;</span><span class="o">);</span>
        <span class="o">},</span>
        
        <span class="nx">testNaN</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="nb">isNaN</span><span class="o">(</span><span class="kc">NaN</span><span class="o">),</span> <span class="nb">isNaN</span><span class="o">(</span><span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">DataTable</span><span class="o">.</span><span class="nx">_cloneObject</span><span class="o">(</span><span class="kc">NaN</span><span class="o">)),</span> <span class="s2">&quot;Expected NaN&quot;</span><span class="o">);</span>
        <span class="o">},</span>
        
        <span class="nx">testZero</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">0</span><span class="o">,</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">DataTable</span><span class="o">.</span><span class="nx">_cloneObject</span><span class="o">(</span><span class="m">0</span><span class="o">),</span> <span class="s2">&quot;Expected 0&quot;</span><span class="o">);</span>
        <span class="o">},</span>
        
        <span class="nx">testNumber</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="m">5</span><span class="o">,</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">DataTable</span><span class="o">.</span><span class="nx">_cloneObject</span><span class="o">(</span><span class="m">5</span><span class="o">),</span> <span class="s2">&quot;Expected 5&quot;</span><span class="o">);</span>
        <span class="o">},</span>
        
        <span class="nx">testString</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="s2">&quot;abc&quot;</span><span class="o">,</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">DataTable</span><span class="o">.</span><span class="nx">_cloneObject</span><span class="o">(</span><span class="s2">&quot;abc&quot;</span><span class="o">),</span> <span class="s2">&quot;Expected abc&quot;</span><span class="o">);</span>
        <span class="o">},</span>
        
        <span class="nx">testFalse</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">false</span><span class="o">,</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">DataTable</span><span class="o">.</span><span class="nx">_cloneObject</span><span class="o">(</span><span class="kc">false</span><span class="o">),</span> <span class="s2">&quot;Expected false&quot;</span><span class="o">);</span>
        <span class="o">},</span>
        
        <span class="nx">testTrue</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="nx">Assert</span><span class="o">.</span><span class="nx">areSame</span><span class="o">(</span><span class="kc">true</span><span class="o">,</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">DataTable</span><span class="o">.</span><span class="nx">_cloneObject</span><span class="o">(</span><span class="kc">true</span><span class="o">),</span> <span class="s2">&quot;Expected true&quot;</span><span class="o">);</span>
        <span class="o">},</span>
        
        <span class="nx">testArraySimple</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="nx">ArrayAssert</span><span class="o">.</span><span class="nx">itemsAreSame</span><span class="o">([</span><span class="m">1</span><span class="o">,</span><span class="m">2</span><span class="o">,</span><span class="m">3</span><span class="o">],</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">DataTable</span><span class="o">.</span><span class="nx">_cloneObject</span><span class="o">([</span><span class="m">1</span><span class="o">,</span><span class="m">2</span><span class="o">,</span><span class="m">3</span><span class="o">]),</span> <span class="s2">&quot;Expected simple array&quot;</span><span class="o">);</span>
        <span class="o">},</span>
        
        <span class="nx">testObjectSimple</span><span class="o">:</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
            <span class="k">var</span> <span class="nx">dt</span> <span class="o">=</span> <span class="k">this</span><span class="o">.</span><span class="nx">createInstance</span><span class="o">();</span>
            <span class="nx">ObjectAssert</span><span class="o">.</span><span class="nx">propertiesAreEqual</span><span class="o">({</span><span class="s2">&quot;a&quot;</span><span class="o">:</span><span class="m">1</span><span class="o">,</span><span class="s2">&quot;b&quot;</span><span class="o">:</span><span class="m">2</span><span class="o">,</span><span class="s2">&quot;c&quot;</span><span class="o">:</span><span class="m">3</span><span class="o">},</span> <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">widget</span><span class="o">.</span><span class="nx">DataTable</span><span class="o">.</span><span class="nx">_cloneObject</span><span class="o">({</span><span class="s2">&quot;a&quot;</span><span class="o">:</span><span class="m">1</span><span class="o">,</span><span class="s2">&quot;b&quot;</span><span class="o">:</span><span class="m">2</span><span class="o">,</span><span class="s2">&quot;c&quot;</span><span class="o">:</span><span class="m">3</span><span class="o">}),</span> <span class="s2">&quot;Expected simple object&quot;</span><span class="o">);</span>
        <span class="o">}</span>
    <span class="o">});</span>

    <span class="k">var</span> <span class="nx">dtCloneObjectTest</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">DataTableTestCase</span><span class="o">(</span><span class="nx">dtCloneObjectTemplate</span><span class="o">);</span>

    <span class="c">/**</span>
<span class="c">     *</span>
<span class="c">     *</span>
<span class="c">     * Runs tests.</span>
<span class="c">     *</span>
<span class="c">     *</span>
<span class="c">     */</span>
    <span class="nx">YAHOO</span><span class="o">.</span><span class="nx">util</span><span class="o">.</span><span class="nx">Event</span><span class="o">.</span><span class="nx">addListener</span><span class="o">(</span><span class="nb">window</span><span class="o">,</span> <span class="s2">&quot;load&quot;</span><span class="o">,</span> <span class="k">function</span><span class="o">()</span> <span class="o">{</span>
        <span class="k">var</span> <span class="nx">datatablesuite</span> <span class="o">=</span> <span class="k">new</span> <span class="nx">TestSuite</span><span class="o">(</span><span class="s2">&quot;DataTable Test Suite&quot;</span><span class="o">);</span>
        <span class="nx">datatablesuite</span><span class="o">.</span><span class="nx">add</span><span class="o">(</span><span class="nx">dtConstructionTest</span><span class="o">);</span>
        <span class="nx">datatablesuite</span><span class="o">.</span><span class="nx">add</span><span class="o">(</span><span class="nx">dtDomAccessorsTest</span><span class="o">);</span>
        <span class="nx">datatablesuite</span><span class="o">.</span><span class="nx">add</span><span class="o">(</span><span class="nx">dtRowMutationTest</span><span class="o">);</span>
        <span class="nx">datatablesuite</span><span class="o">.</span><span class="nx">add</span><span class="o">(</span><span class="nx">dtSortingTest</span><span class="o">);</span>
        <span class="nx">datatablesuite</span><span class="o">.</span><span class="nx">add</span><span class="o">(</span><span class="nx">dtRowSelectionTest</span><span class="o">);</span>
        <span class="nx">datatablesuite</span><span class="o">.</span><span class="nx">add</span><span class="o">(</span><span class="nx">dtCellSelectionTest</span><span class="o">);</span>
        <span class="nx">datatablesuite</span><span class="o">.</span><span class="nx">add</span><span class="o">(</span><span class="nx">dtPaginationTest</span><span class="o">);</span>
        <span class="nx">datatablesuite</span><span class="o">.</span><span class="nx">add</span><span class="o">(</span><span class="nx">dtCloneObjectTest</span><span class="o">);</span>
        
        <span class="nx">TestRunner</span><span class="o">.</span><span class="nx">add</span><span class="o">(</span><span class="nx">datatablesuite</span><span class="o">);</span>
    <span class="o">});</span>
<span class="o">})();</span>
</pre></div>
                    </div>
			</div>
		</div>
		<div class="yui-b">
            <div class="nav">

                    <div id="moduleList" class="module">
                        <h4>Modules</h4>
                        <ul class="content">
                                <li class=""><a href="module_animation.html" title="animation">animation</a></li>
                                <li class=""><a href="module_autocomplete.html" title="autocomplete">autocomplete</a></li>
                                <li class=""><a href="module_button.html" title="button">button</a></li>
                                <li class=""><a href="module_calendar.html" title="calendar">calendar</a></li>
                                <li class=""><a href="module_carousel.html" title="carousel">carousel</a></li>
                                <li class=""><a href="module_charts.html" title="charts">charts</a></li>
                                <li class=""><a href="module_colorpicker.html" title="colorpicker">colorpicker</a></li>
                                <li class=""><a href="module_connection.html" title="connection">connection</a></li>
                                <li class=""><a href="module_container.html" title="container">container</a></li>
                                <li class=""><a href="module_cookie.html" title="cookie">cookie</a></li>
                                <li class=""><a href="module_datasource.html" title="datasource">datasource</a></li>
                                <li class="selected"><a href="module_datatable.html" title="datatable">datatable</a></li>
                                <li class=""><a href="module_dom.html" title="dom">dom</a></li>
                                <li class=""><a href="module_dragdrop.html" title="dragdrop">dragdrop</a></li>
                                <li class=""><a href="module_editor.html" title="editor">editor</a></li>
                                <li class=""><a href="module_element.html" title="element">element</a></li>
                                <li class=""><a href="module_event.html" title="event">event</a></li>
                                <li class=""><a href="module_get.html" title="get">get</a></li>
                                <li class=""><a href="module_history.html" title="history">history</a></li>
                                <li class=""><a href="module_imagecropper.html" title="imagecropper">imagecropper</a></li>
                                <li class=""><a href="module_imageloader.html" title="imageloader">imageloader</a></li>
                                <li class=""><a href="module_json.html" title="json">json</a></li>
                                <li class=""><a href="module_layout.html" title="layout">layout</a></li>
                                <li class=""><a href="module_logger.html" title="logger">logger</a></li>
                                <li class=""><a href="module_menu.html" title="menu">menu</a></li>
                                <li class=""><a href="module_paginator.html" title="paginator">paginator</a></li>
                                <li class=""><a href="module_profiler.html" title="profiler">profiler</a></li>
                                <li class=""><a href="module_profilerviewer.html" title="profilerviewer">profilerviewer</a></li>
                                <li class=""><a href="module_resize.html" title="resize">resize</a></li>
                                <li class=""><a href="module_selector.html" title="selector">selector</a></li>
                                <li class=""><a href="module_slider.html" title="slider">slider</a></li>
                                <li class=""><a href="module_stylesheet.html" title="stylesheet">stylesheet</a></li>
                                <li class=""><a href="module_tabview.html" title="tabview">tabview</a></li>
                                <li class=""><a href="module_treeview.html" title="treeview">treeview</a></li>
                                <li class=""><a href="module_uploader.html" title="uploader">uploader</a></li>
                                <li class=""><a href="module_yahoo.html" title="yahoo">yahoo</a></li>
                                <li class=""><a href="module_yuiloader.html" title="yuiloader">yuiloader</a></li>
                                <li class=""><a href="module_yuitest.html" title="yuitest">yuitest</a></li>
                        </ul>
                    </div>

                    <div id="classList" class="module">
                        <h4>Classes</h4>
                        <ul class="content">
                                <li class=""><a href="YAHOO.util.Chain.html" title="YAHOO.util.Chain">YAHOO.util.Chain</a></li>
                                <li class=""><a href="YAHOO.util.ColumnDD.html" title="YAHOO.util.ColumnDD">YAHOO.util.ColumnDD</a></li>
                                <li class=""><a href="YAHOO.util.ColumnResizer.html" title="YAHOO.util.ColumnResizer">YAHOO.util.ColumnResizer</a></li>
                                <li class=""><a href="YAHOO.util.Sort.html" title="YAHOO.util.Sort">YAHOO.util.Sort</a></li>
                                <li class=""><a href="YAHOO.widget.BaseCellEditor.html" title="YAHOO.widget.BaseCellEditor">YAHOO.widget.BaseCellEditor</a></li>
                                <li class=""><a href="YAHOO.widget.CellEditor.html" title="YAHOO.widget.CellEditor">YAHOO.widget.CellEditor</a></li>
                                <li class=""><a href="YAHOO.widget.CheckboxCellEditor.html" title="YAHOO.widget.CheckboxCellEditor">YAHOO.widget.CheckboxCellEditor</a></li>
                                <li class=""><a href="YAHOO.widget.Column.html" title="YAHOO.widget.Column">YAHOO.widget.Column</a></li>
                                <li class=""><a href="YAHOO.widget.ColumnSet.html" title="YAHOO.widget.ColumnSet">YAHOO.widget.ColumnSet</a></li>
                                <li class=""><a href="YAHOO.widget.DataTable.html" title="YAHOO.widget.DataTable">YAHOO.widget.DataTable</a></li>
                                <li class=""><a href="YAHOO.widget.DateCellEditor.html" title="YAHOO.widget.DateCellEditor">YAHOO.widget.DateCellEditor</a></li>
                                <li class=""><a href="YAHOO.widget.DropdownCellEditor.html" title="YAHOO.widget.DropdownCellEditor">YAHOO.widget.DropdownCellEditor</a></li>
                                <li class=""><a href="YAHOO.widget.RadioCellEditor.html" title="YAHOO.widget.RadioCellEditor">YAHOO.widget.RadioCellEditor</a></li>
                                <li class=""><a href="YAHOO.widget.Record.html" title="YAHOO.widget.Record">YAHOO.widget.Record</a></li>
                                <li class=""><a href="YAHOO.widget.RecordSet.html" title="YAHOO.widget.RecordSet">YAHOO.widget.RecordSet</a></li>
                                <li class=""><a href="YAHOO.widget.ScrollingDataTable.html" title="YAHOO.widget.ScrollingDataTable">YAHOO.widget.ScrollingDataTable</a></li>
                                <li class=""><a href="YAHOO.widget.TextareaCellEditor.html" title="YAHOO.widget.TextareaCellEditor">YAHOO.widget.TextareaCellEditor</a></li>
                                <li class=""><a href="YAHOO.widget.TextboxCellEditor.html" title="YAHOO.widget.TextboxCellEditor">YAHOO.widget.TextboxCellEditor</a></li>
                        </ul>
                    </div>

                    <div id="fileList" class="module">
                        <h4>Files</h4>
                        <ul class="content">        
                                <li class=""><a href="CellEditor.js.html" title="CellEditor.js">CellEditor.js</a></li>
                                <li class=""><a href="Chain.js.html" title="Chain.js">Chain.js</a></li>
                                <li class=""><a href="ColumnSet.js.html" title="ColumnSet.js">ColumnSet.js</a></li>
                                <li class=""><a href="ColumnSet.js.html" title="ColumnSet.js">ColumnSet.js</a></li>
                                <li class="selected"><a href="DataTable.js.html" title="DataTable.js">DataTable.js</a></li>
                                <li class="selected"><a href="DataTable.js.html" title="DataTable.js">DataTable.js</a></li>
                                <li class=""><a href="RecordSet.js.html" title="RecordSet.js">RecordSet.js</a></li>
                                <li class=""><a href="RecordSet.js.html" title="RecordSet.js">RecordSet.js</a></li>
                                <li class=""><a href="ScrollingDataTable.js.html" title="ScrollingDataTable.js">ScrollingDataTable.js</a></li>
                        </ul>
                    </div>





            </div>
		</div>
	</div>
	<div id="ft">
        <hr />
        Copyright &copy; 2009 Yahoo! Inc. All rights reserved.
	</div>
</div>
<script type="text/javascript">
    ALL_YUI_PROPS = [{"access": "", "host": "YAHOO.widget.Column", "name": "abbr", "url": "YAHOO.widget.Column.html#property_abbr", "type": "property"}, {"access": "", "host": "YAHOO.util.Chain", "name": "add", "url": "YAHOO.util.Chain.html#method_add", "type": "method"}, {"access": "private", "host": "YAHOO.widget.RecordSet", "name": "_addRecord", "url": "YAHOO.widget.RecordSet.html#method__addRecord", "type": "method"}, {"access": "", "host": "YAHOO.widget.RecordSet", "name": "addRecord", "url": "YAHOO.widget.RecordSet.html#method_addRecord", "type": "method"}, {"access": "", "host": "YAHOO.widget.RecordSet", "name": "addRecords", "url": "YAHOO.widget.RecordSet.html#method_addRecords", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "addRow", "url": "YAHOO.widget.DataTable.html#method_addRow", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "addRows", "url": "YAHOO.widget.DataTable.html#method_addRows", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ColumnSet", "name": "_aDefinitions", "url": "YAHOO.widget.ColumnSet.html#property__aDefinitions", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_aDynFunctions", "url": "YAHOO.widget.DataTable.html#property__aDynFunctions", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_aSelections", "url": "YAHOO.widget.DataTable.html#property__aSelections", "type": "property"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "asyncSubmitter", "url": "YAHOO.widget.BaseCellEditor.html#property_asyncSubmitter", "type": "property"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "attach", "url": "YAHOO.widget.BaseCellEditor.html#method_attach", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "beforeCaptionChange", "url": "YAHOO.widget.DataTable.html#event_beforeCaptionChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.ScrollingDataTable", "name": "beforeCOLOR_COLUMNFILLERChange", "url": "YAHOO.widget.ScrollingDataTable.html#event_beforeCOLOR_COLUMNFILLERChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "beforeCurrencyOptionsChange", "url": "YAHOO.widget.DataTable.html#event_beforeCurrencyOptionsChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "beforeCurrencySymbolChange", "url": "YAHOO.widget.DataTable.html#event_beforeCurrencySymbolChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "beforeDateOptionsChange", "url": "YAHOO.widget.DataTable.html#event_beforeDateOptionsChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "beforeDraggableColumnsChange", "url": "YAHOO.widget.DataTable.html#event_beforeDraggableColumnsChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "beforeDynamicDataChange", "url": "YAHOO.widget.DataTable.html#event_beforeDynamicDataChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "beforeFormatRowChange", "url": "YAHOO.widget.DataTable.html#event_beforeFormatRowChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "beforeGenerateRequestChange", "url": "YAHOO.widget.DataTable.html#event_beforeGenerateRequestChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.ScrollingDataTable", "name": "beforeHeightChange", "url": "YAHOO.widget.ScrollingDataTable.html#event_beforeHeightChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "beforeInitialLoadChange", "url": "YAHOO.widget.DataTable.html#event_beforeInitialLoadChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "beforeInitialRequestChange", "url": "YAHOO.widget.DataTable.html#event_beforeInitialRequestChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "beforeMSG_EMPTYChange", "url": "YAHOO.widget.DataTable.html#event_beforeMSG_EMPTYChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "beforeMSG_ERRORChange", "url": "YAHOO.widget.DataTable.html#event_beforeMSG_ERRORChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "beforeMSG_LOADINGChange", "url": "YAHOO.widget.DataTable.html#event_beforeMSG_LOADINGChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "beforeMSG_SORTASCChange", "url": "YAHOO.widget.DataTable.html#event_beforeMSG_SORTASCChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "beforeMSG_SORTDESCChange", "url": "YAHOO.widget.DataTable.html#event_beforeMSG_SORTDESCChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "beforeNumberOptionsChange", "url": "YAHOO.widget.DataTable.html#event_beforeNumberOptionsChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "beforePaginatorChange", "url": "YAHOO.widget.DataTable.html#event_beforePaginatorChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "beforeRenderLoopSizeChange", "url": "YAHOO.widget.DataTable.html#event_beforeRenderLoopSizeChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "beforeSelectionModeChange", "url": "YAHOO.widget.DataTable.html#event_beforeSelectionModeChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "beforeSortedByChange", "url": "YAHOO.widget.DataTable.html#event_beforeSortedByChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "beforeSummaryChange", "url": "YAHOO.widget.DataTable.html#event_beforeSummaryChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.ScrollingDataTable", "name": "beforeWidthChange", "url": "YAHOO.widget.ScrollingDataTable.html#event_beforeWidthChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_bInit", "url": "YAHOO.widget.DataTable.html#property__bInit", "type": "property"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "block", "url": "YAHOO.widget.BaseCellEditor.html#method_block", "type": "method"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "blurEvent", "url": "YAHOO.widget.BaseCellEditor.html#event_blurEvent", "type": "event"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_bScrollbarX", "url": "YAHOO.widget.ScrollingDataTable.html#property__bScrollbarX", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "buttonClickEvent", "url": "YAHOO.widget.DataTable.html#event_buttonClickEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DateCellEditor", "name": "calendar", "url": "YAHOO.widget.DateCellEditor.html#property_calendar", "type": "property"}, {"access": "", "host": "YAHOO.widget.DateCellEditor", "name": "calendarOptions", "url": "YAHOO.widget.DateCellEditor.html#property_calendarOptions", "type": "property"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "cancel", "url": "YAHOO.widget.BaseCellEditor.html#method_cancel", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "cancelCellEditor", "url": "YAHOO.widget.DataTable.html#method_cancelCellEditor", "type": "method"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "cancelEvent", "url": "YAHOO.widget.BaseCellEditor.html#event_cancelEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "caption", "url": "YAHOO.widget.DataTable.html#config_caption", "type": "config"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "captionChange", "url": "YAHOO.widget.DataTable.html#event_captionChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "cellClickEvent", "url": "YAHOO.widget.DataTable.html#event_cellClickEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "cellDblclickEvent", "url": "YAHOO.widget.DataTable.html#event_cellDblclickEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "CellEditor.CLASS_CELLEDITOR", "url": "YAHOO.widget.BaseCellEditor.html#property_CellEditor.CLASS_CELLEDITOR", "type": "property"}, {"access": "private", "host": "YAHOO.widget.BaseCellEditor", "name": "CellEditor._nCount", "url": "YAHOO.widget.BaseCellEditor.html#property_CellEditor._nCount", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "cellFormatEvent", "url": "YAHOO.widget.DataTable.html#event_cellFormatEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "cellHighlightEvent", "url": "YAHOO.widget.DataTable.html#event_cellHighlightEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "cellMousedownEvent", "url": "YAHOO.widget.DataTable.html#event_cellMousedownEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "cellMouseoutEvent", "url": "YAHOO.widget.DataTable.html#event_cellMouseoutEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "cellMouseoverEvent", "url": "YAHOO.widget.DataTable.html#event_cellMouseoverEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "cellMouseupEvent", "url": "YAHOO.widget.DataTable.html#event_cellMouseupEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "cellSelectEvent", "url": "YAHOO.widget.DataTable.html#event_cellSelectEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "cellUnhighlightEvent", "url": "YAHOO.widget.DataTable.html#event_cellUnhighlightEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "cellUnselectEvent", "url": "YAHOO.widget.DataTable.html#event_cellUnselectEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "cellUpdateEvent", "url": "YAHOO.widget.DataTable.html#event_cellUpdateEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "checkboxClickEvent", "url": "YAHOO.widget.DataTable.html#event_checkboxClickEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.CheckboxCellEditor", "name": "checkboxes", "url": "YAHOO.widget.CheckboxCellEditor.html#property_checkboxes", "type": "property"}, {"access": "", "host": "YAHOO.widget.CheckboxCellEditor", "name": "checkboxOptions", "url": "YAHOO.widget.CheckboxCellEditor.html#property_checkboxOptions", "type": "property"}, {"access": "", "host": "YAHOO.widget.Column", "name": "children", "url": "YAHOO.widget.Column.html#property_children", "type": "property"}, {"access": "", "host": "YAHOO.widget.Column", "name": "className", "url": "YAHOO.widget.Column.html#property_className", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_clearMinWidth", "url": "YAHOO.widget.DataTable.html#method__clearMinWidth", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "clearTextSelection", "url": "YAHOO.widget.DataTable.html#method_clearTextSelection", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_clearTrTemplateEl", "url": "YAHOO.widget.DataTable.html#method__clearTrTemplateEl", "type": "method"}, {"access": "private", "host": "YAHOO.util.ColumnResizer", "name": "clickValidator", "url": "YAHOO.util.ColumnResizer.html#method_clickValidator", "type": "method"}, {"access": "", "host": "YAHOO.widget.ScrollingDataTable", "name": "COLOR_COLUMNFILLER", "url": "YAHOO.widget.ScrollingDataTable.html#config_COLOR_COLUMNFILLER", "type": "config"}, {"access": "", "host": "YAHOO.widget.ScrollingDataTable", "name": "COLOR_COLUMNFILLERChange", "url": "YAHOO.widget.ScrollingDataTable.html#event_COLOR_COLUMNFILLERChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "columnHideEvent", "url": "YAHOO.widget.DataTable.html#event_columnHideEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "columnHighlightEvent", "url": "YAHOO.widget.DataTable.html#event_columnHighlightEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "columnInsertEvent", "url": "YAHOO.widget.DataTable.html#event_columnInsertEvent", "type": "event"}, {"access": "private", "host": "YAHOO.widget.Column", "name": "Column._nCount", "url": "YAHOO.widget.Column.html#property_Column._nCount", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "columnRemoveEvent", "url": "YAHOO.widget.DataTable.html#event_columnRemoveEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "columnReorderEvent", "url": "YAHOO.widget.DataTable.html#event_columnReorderEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "columnResizeEvent", "url": "YAHOO.widget.DataTable.html#event_columnResizeEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "columnSelectEvent", "url": "YAHOO.widget.DataTable.html#event_columnSelectEvent", "type": "event"}, {"access": "private", "host": "YAHOO.widget.ColumnSet", "name": "ColumnSet._nCount", "url": "YAHOO.widget.ColumnSet.html#property_ColumnSet._nCount", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "columnSetWidthEvent", "url": "YAHOO.widget.DataTable.html#event_columnSetWidthEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "columnShowEvent", "url": "YAHOO.widget.DataTable.html#event_columnShowEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "columnSortEvent", "url": "YAHOO.widget.DataTable.html#event_columnSortEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "columnUnhighlightEvent", "url": "YAHOO.widget.DataTable.html#event_columnUnhighlightEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "columnUnselectEvent", "url": "YAHOO.widget.DataTable.html#event_columnUnselectEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "columnUnsetWidthEvent", "url": "YAHOO.widget.DataTable.html#event_columnUnsetWidthEvent", "type": "event"}, {"access": "", "host": "YAHOO.util.Sort", "name": "compare", "url": "YAHOO.util.Sort.html#method_compare", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "configs", "url": "YAHOO.widget.DataTable.html#property_configs", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_createTrEl", "url": "YAHOO.widget.DataTable.html#method__createTrEl", "type": "method"}, {"access": "", "host": "YAHOO.util.ColumnResizer", "name": "csColumnSetTemplate", "url": "YAHOO.util.ColumnResizer.html#property_csColumnSetTemplate", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "currencyOptions", "url": "YAHOO.widget.DataTable.html#config_currencyOptions", "type": "config"}, {"access": "", "host": "YAHOO.widget.Column", "name": "currencyOptions", "url": "YAHOO.widget.Column.html#property_currencyOptions", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "currencyOptionsChange", "url": "YAHOO.widget.DataTable.html#event_currencyOptionsChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "currencySymbol", "url": "YAHOO.widget.DataTable.html#config_currencySymbol", "type": "config"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "currencySymbolChange", "url": "YAHOO.widget.DataTable.html#event_currencySymbolChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "dataReturnEvent", "url": "YAHOO.widget.DataTable.html#event_dataReturnEvent", "type": "event"}, {"access": "", "host": "YAHOO.util.ColumnResizer", "name": "DataTableAssert", "url": "YAHOO.util.ColumnResizer.html#property_DataTableAssert", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "DataTable._bDynStylesFallback", "url": "YAHOO.widget.DataTable.html#property_DataTable._bDynStylesFallback", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_ASC", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_ASC", "type": "property"}, {"access": "", "host": "YAHOO.widget.ScrollingDataTable", "name": "DataTable.CLASS_BODY", "url": "YAHOO.widget.ScrollingDataTable.html#property_DataTable.CLASS_BODY", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_BUTTON", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_BUTTON", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_CHECKBOX", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_CHECKBOX", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_COLTARGET", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_COLTARGET", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_DATA", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_DATA", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_DATATABLE", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_DATATABLE", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_DEFAULT", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_DEFAULT", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_DESC", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_DESC", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_DISABLED", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_DISABLED", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_DRAGGABLE", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_DRAGGABLE", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_DROPDOWN", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_DROPDOWN", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_EDITABLE", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_EDITABLE", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_EDITOR", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_EDITOR", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_EMPTY", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_EMPTY", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_ERROR", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_ERROR", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_EVEN", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_EVEN", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_FIRST", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_FIRST", "type": "property"}, {"access": "", "host": "YAHOO.widget.ScrollingDataTable", "name": "DataTable.CLASS_HEADER", "url": "YAHOO.widget.ScrollingDataTable.html#property_DataTable.CLASS_HEADER", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_HIDDEN", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_HIDDEN", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_HIGHLIGHTED", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_HIGHLIGHTED", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_LABEL", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_LABEL", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_LAST", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_LAST", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_LINER", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_LINER", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_LOADING", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_LOADING", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_MASK", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_MASK", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_MESSAGE", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_MESSAGE", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_NEXT", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_NEXT", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_ODD", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_ODD", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_PAGE", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_PAGE", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_PAGINATOR", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_PAGINATOR", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_PREVIOUS", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_PREVIOUS", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_RADIO", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_RADIO", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_RESIZEABLE", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_RESIZEABLE", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_RESIZER", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_RESIZER", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_RESIZERLINER", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_RESIZERLINER", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_RESIZERPROXY", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_RESIZERPROXY", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_SCROLLABLE", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_SCROLLABLE", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_SELECTED", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_SELECTED", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.CLASS_SORTABLE", "url": "YAHOO.widget.DataTable.html#property_DataTable.CLASS_SORTABLE", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "DataTable._cloneObject", "url": "YAHOO.widget.DataTable.html#method_DataTable._cloneObject", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "DataTable._destroyColumnDragTargetEl", "url": "YAHOO.widget.DataTable.html#method_DataTable._destroyColumnDragTargetEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "DataTable._destroyColumnResizerProxyEl", "url": "YAHOO.widget.DataTable.html#method_DataTable._destroyColumnResizerProxyEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.editCheckbox", "url": "YAHOO.widget.DataTable.html#method_DataTable.editCheckbox", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.editDate", "url": "YAHOO.widget.DataTable.html#method_DataTable.editDate", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.editDropdown", "url": "YAHOO.widget.DataTable.html#method_DataTable.editDropdown", "type": "method"}, {"access": "", "host": "YAHOO.widget.TextboxCellEditor", "name": "DataTable.Editors", "url": "YAHOO.widget.TextboxCellEditor.html#property_DataTable.Editors", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.editRadio", "url": "YAHOO.widget.DataTable.html#method_DataTable.editRadio", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.editTextarea", "url": "YAHOO.widget.DataTable.html#method_DataTable.editTextarea", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.editTextbox", "url": "YAHOO.widget.DataTable.html#method_DataTable.editTextbox", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "DataTable._elColumnDragTarget", "url": "YAHOO.widget.DataTable.html#property_DataTable._elColumnDragTarget", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "DataTable._elColumnResizerProxy", "url": "YAHOO.widget.DataTable.html#property_DataTable._elColumnResizerProxy", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "DataTable._elDynStyleNode", "url": "YAHOO.widget.DataTable.html#property_DataTable._elDynStyleNode", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.formatButton", "url": "YAHOO.widget.DataTable.html#method_DataTable.formatButton", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.formatCheckbox", "url": "YAHOO.widget.DataTable.html#method_DataTable.formatCheckbox", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.formatCurrency", "url": "YAHOO.widget.DataTable.html#method_DataTable.formatCurrency", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.formatDate", "url": "YAHOO.widget.DataTable.html#method_DataTable.formatDate", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.formatDefault", "url": "YAHOO.widget.DataTable.html#method_DataTable.formatDefault", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.formatDropdown", "url": "YAHOO.widget.DataTable.html#method_DataTable.formatDropdown", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.formatEmail", "url": "YAHOO.widget.DataTable.html#method_DataTable.formatEmail", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.formatLink", "url": "YAHOO.widget.DataTable.html#method_DataTable.formatLink", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.formatNumber", "url": "YAHOO.widget.DataTable.html#method_DataTable.formatNumber", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.formatRadio", "url": "YAHOO.widget.DataTable.html#method_DataTable.formatRadio", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.Formatter", "url": "YAHOO.widget.DataTable.html#property_DataTable.Formatter", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.formatText", "url": "YAHOO.widget.DataTable.html#method_DataTable.formatText", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.formatTextarea", "url": "YAHOO.widget.DataTable.html#method_DataTable.formatTextarea", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.formatTextbox", "url": "YAHOO.widget.DataTable.html#method_DataTable.formatTextbox", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.formatTheadCell", "url": "YAHOO.widget.DataTable.html#method_DataTable.formatTheadCell", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "DataTable._initColumnDragTargetEl", "url": "YAHOO.widget.DataTable.html#method_DataTable._initColumnDragTargetEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "DataTable._initColumnResizerProxyEl", "url": "YAHOO.widget.DataTable.html#method_DataTable._initColumnResizerProxyEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "DataTable._nCount", "url": "YAHOO.widget.DataTable.html#property_DataTable._nCount", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "DataTable._nCurrentCount", "url": "YAHOO.widget.DataTable.html#property_DataTable._nCurrentCount", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "DataTable._oDynStyles", "url": "YAHOO.widget.DataTable.html#property_DataTable._oDynStyles", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "DataTable.validateNumber", "url": "YAHOO.widget.DataTable.html#method_DataTable.validateNumber", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "dateOptions", "url": "YAHOO.widget.DataTable.html#config_dateOptions", "type": "config"}, {"access": "", "host": "YAHOO.widget.Column", "name": "dateOptions", "url": "YAHOO.widget.Column.html#property_dateOptions", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "dateOptionsChange", "url": "YAHOO.widget.DataTable.html#event_dateOptionsChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.Column", "name": "_dd", "url": "YAHOO.widget.Column.html#property__dd", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Column", "name": "_ddResizer", "url": "YAHOO.widget.Column.html#property__ddResizer", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_defaultPaginatorContainers", "url": "YAHOO.widget.DataTable.html#method__defaultPaginatorContainers", "type": "method"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "defaultValue", "url": "YAHOO.widget.BaseCellEditor.html#property_defaultValue", "type": "property"}, {"access": "", "host": "YAHOO.widget.DateCellEditor", "name": "defaultValue", "url": "YAHOO.widget.DateCellEditor.html#property_defaultValue", "type": "property"}, {"access": "private", "host": "YAHOO.widget.RecordSet", "name": "_deleteRecord", "url": "YAHOO.widget.RecordSet.html#method__deleteRecord", "type": "method"}, {"access": "", "host": "YAHOO.widget.RecordSet", "name": "deleteRecord", "url": "YAHOO.widget.RecordSet.html#method_deleteRecord", "type": "method"}, {"access": "", "host": "YAHOO.widget.RecordSet", "name": "deleteRecords", "url": "YAHOO.widget.RecordSet.html#method_deleteRecords", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "deleteRow", "url": "YAHOO.widget.DataTable.html#method_deleteRow", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "deleteRows", "url": "YAHOO.widget.DataTable.html#method_deleteRows", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_deleteTrEl", "url": "YAHOO.widget.DataTable.html#method__deleteTrEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "destroy", "url": "YAHOO.widget.BaseCellEditor.html#method_destroy", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "destroy", "url": "YAHOO.widget.DataTable.html#method_destroy", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_destroyBdTheadEl", "url": "YAHOO.widget.ScrollingDataTable.html#method__destroyBdTheadEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "destroyCellEditor", "url": "YAHOO.widget.DataTable.html#method_destroyCellEditor", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_destroyColgroupEl", "url": "YAHOO.widget.DataTable.html#method__destroyColgroupEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_destroyColumnHelpers", "url": "YAHOO.widget.DataTable.html#method__destroyColumnHelpers", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_destroyContainerEl", "url": "YAHOO.widget.ScrollingDataTable.html#method__destroyContainerEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_destroyContainerEl", "url": "YAHOO.widget.DataTable.html#method__destroyContainerEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_destroyDraggableColumns", "url": "YAHOO.widget.DataTable.html#method__destroyDraggableColumns", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_destroyHdTableEl", "url": "YAHOO.widget.ScrollingDataTable.html#method__destroyHdTableEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_destroyMsgTbodyEl", "url": "YAHOO.widget.DataTable.html#method__destroyMsgTbodyEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_destroyResizeableColumns", "url": "YAHOO.widget.DataTable.html#method__destroyResizeableColumns", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_destroyTableEl", "url": "YAHOO.widget.DataTable.html#method__destroyTableEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_destroyTbodyEl", "url": "YAHOO.widget.DataTable.html#method__destroyTbodyEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_destroyTheadEl", "url": "YAHOO.widget.DataTable.html#method__destroyTheadEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.ScrollingDataTable", "name": "disable", "url": "YAHOO.widget.ScrollingDataTable.html#method_disable", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "disable", "url": "YAHOO.widget.DataTable.html#method_disable", "type": "method"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "disableBtns", "url": "YAHOO.widget.BaseCellEditor.html#property_disableBtns", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "disableEvent", "url": "YAHOO.widget.DataTable.html#event_disableEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "doAfterRender", "url": "YAHOO.widget.BaseCellEditor.html#method_doAfterRender", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "doBeforeLoadData", "url": "YAHOO.widget.DataTable.html#method_doBeforeLoadData", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "doBeforePaginatorChange", "url": "YAHOO.widget.DataTable.html#method_doBeforePaginatorChange", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "doBeforeShowCellEditor", "url": "YAHOO.widget.DataTable.html#method_doBeforeShowCellEditor", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "doBeforeSortColumn", "url": "YAHOO.widget.DataTable.html#method_doBeforeSortColumn", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "draggableColumns", "url": "YAHOO.widget.DataTable.html#config_draggableColumns", "type": "config"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "draggableColumnsChange", "url": "YAHOO.widget.DataTable.html#event_draggableColumnsChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DropdownCellEditor", "name": "dropdown", "url": "YAHOO.widget.DropdownCellEditor.html#property_dropdown", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "dropdownChangeEvent", "url": "YAHOO.widget.DataTable.html#event_dropdownChangeEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DropdownCellEditor", "name": "dropdownOptions", "url": "YAHOO.widget.DropdownCellEditor.html#property_dropdownOptions", "type": "property"}, {"access": "", "host": "YAHOO.util.ColumnResizer", "name": "dtBaseTemplate", "url": "YAHOO.util.ColumnResizer.html#property_dtBaseTemplate", "type": "property"}, {"access": "", "host": "YAHOO.util.ColumnResizer", "name": "dtCellSelectionTemplate", "url": "YAHOO.util.ColumnResizer.html#property_dtCellSelectionTemplate", "type": "property"}, {"access": "", "host": "YAHOO.util.ColumnResizer", "name": "dtCloneObjectTemplate", "url": "YAHOO.util.ColumnResizer.html#property_dtCloneObjectTemplate", "type": "property"}, {"access": "", "host": "YAHOO.util.ColumnResizer", "name": "dtConstructionTemplate", "url": "YAHOO.util.ColumnResizer.html#property_dtConstructionTemplate", "type": "property"}, {"access": "", "host": "YAHOO.util.ColumnResizer", "name": "dtDomAccessorsTemplate", "url": "YAHOO.util.ColumnResizer.html#property_dtDomAccessorsTemplate", "type": "property"}, {"access": "", "host": "YAHOO.util.ColumnResizer", "name": "dtPaginationTemplate", "url": "YAHOO.util.ColumnResizer.html#property_dtPaginationTemplate", "type": "property"}, {"access": "", "host": "YAHOO.util.ColumnResizer", "name": "dtRowMutationTemplate", "url": "YAHOO.util.ColumnResizer.html#property_dtRowMutationTemplate", "type": "property"}, {"access": "", "host": "YAHOO.util.ColumnResizer", "name": "dtRowSelectionTemplate", "url": "YAHOO.util.ColumnResizer.html#property_dtRowSelectionTemplate", "type": "property"}, {"access": "", "host": "YAHOO.util.ColumnResizer", "name": "dtSortingTemplate", "url": "YAHOO.util.ColumnResizer.html#property_dtSortingTemplate", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "dynamicData", "url": "YAHOO.widget.DataTable.html#config_dynamicData", "type": "config"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "dynamicDataChange", "url": "YAHOO.widget.DataTable.html#event_dynamicDataChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Column", "name": "editor", "url": "YAHOO.widget.Column.html#property_editor", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "editorBlockEvent", "url": "YAHOO.widget.DataTable.html#event_editorBlockEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "editorBlurEvent", "url": "YAHOO.widget.DataTable.html#event_editorBlurEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "editorCancelEvent", "url": "YAHOO.widget.DataTable.html#event_editorCancelEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "editorKeydownEvent", "url": "YAHOO.widget.DataTable.html#event_editorKeydownEvent", "type": "event"}, {"access": "", "host": "YAHOO.util.ColumnResizer", "name": "editorOptions", "url": "YAHOO.util.ColumnResizer.html#property_editorOptions", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "editorRevertEvent", "url": "YAHOO.widget.DataTable.html#event_editorRevertEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "editorSaveEvent", "url": "YAHOO.widget.DataTable.html#event_editorSaveEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "editorShowEvent", "url": "YAHOO.widget.DataTable.html#event_editorShowEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "editorUnblockEvent", "url": "YAHOO.widget.DataTable.html#event_editorUnblockEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "editorUpdateEvent", "url": "YAHOO.widget.DataTable.html#event_editorUpdateEvent", "type": "event"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_elBdContainer", "url": "YAHOO.widget.ScrollingDataTable.html#property__elBdContainer", "type": "property"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_elBdThead", "url": "YAHOO.widget.ScrollingDataTable.html#property__elBdThead", "type": "property"}, {"access": "private", "host": "YAHOO.widget.BaseCellEditor", "name": "_elCancelBtn", "url": "YAHOO.widget.BaseCellEditor.html#property__elCancelBtn", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_elCaption", "url": "YAHOO.widget.DataTable.html#property__elCaption", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_elColgroup", "url": "YAHOO.widget.DataTable.html#property__elColgroup", "type": "property"}, {"access": "private", "host": "YAHOO.widget.BaseCellEditor", "name": "_elContainer", "url": "YAHOO.widget.BaseCellEditor.html#property__elContainer", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_elContainer", "url": "YAHOO.widget.DataTable.html#property__elContainer", "type": "property"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_elHdContainer", "url": "YAHOO.widget.ScrollingDataTable.html#property__elHdContainer", "type": "property"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_elHdTable", "url": "YAHOO.widget.ScrollingDataTable.html#property__elHdTable", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_elMask", "url": "YAHOO.widget.DataTable.html#property__elMask", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_elMsgTbody", "url": "YAHOO.widget.DataTable.html#property__elMsgTbody", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_elMsgTd", "url": "YAHOO.widget.DataTable.html#property__elMsgTd", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_elMsgTr", "url": "YAHOO.widget.DataTable.html#property__elMsgTr", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Column", "name": "_elResizer", "url": "YAHOO.widget.Column.html#property__elResizer", "type": "property"}, {"access": "private", "host": "YAHOO.widget.BaseCellEditor", "name": "_elSaveBtn", "url": "YAHOO.widget.BaseCellEditor.html#property__elSaveBtn", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_elTable", "url": "YAHOO.widget.DataTable.html#property__elTable", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_elTbody", "url": "YAHOO.widget.DataTable.html#property__elTbody", "type": "property"}, {"access": "private", "host": "YAHOO.widget.BaseCellEditor", "name": "_elTd", "url": "YAHOO.widget.BaseCellEditor.html#property__elTd", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Column", "name": "_elTh", "url": "YAHOO.widget.Column.html#property__elTh", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_elThead", "url": "YAHOO.widget.DataTable.html#property__elThead", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Column", "name": "_elThLabel", "url": "YAHOO.widget.Column.html#property__elThLabel", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Column", "name": "_elThLiner", "url": "YAHOO.widget.Column.html#property__elThLiner", "type": "property"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_elTmpContainer", "url": "YAHOO.widget.ScrollingDataTable.html#property__elTmpContainer", "type": "property"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_elTmpTable", "url": "YAHOO.widget.ScrollingDataTable.html#property__elTmpTable", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_elTrTemplate", "url": "YAHOO.widget.DataTable.html#property__elTrTemplate", "type": "property"}, {"access": "", "host": "YAHOO.util.Chain", "name": "end", "url": "YAHOO.util.Chain.html#event_end", "type": "event"}, {"access": "", "host": "YAHOO.widget.Column", "name": "field", "url": "YAHOO.widget.Column.html#property_field", "type": "property"}, {"access": "", "host": "YAHOO.widget.ColumnSet", "name": "flat", "url": "YAHOO.widget.ColumnSet.html#property_flat", "type": "property"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "focus", "url": "YAHOO.widget.BaseCellEditor.html#method_focus", "type": "method"}, {"access": "", "host": "YAHOO.widget.CheckboxCellEditor", "name": "focus", "url": "YAHOO.widget.CheckboxCellEditor.html#method_focus", "type": "method"}, {"access": "", "host": "YAHOO.widget.DateCellEditor", "name": "focus", "url": "YAHOO.widget.DateCellEditor.html#method_focus", "type": "method"}, {"access": "", "host": "YAHOO.widget.DropdownCellEditor", "name": "focus", "url": "YAHOO.widget.DropdownCellEditor.html#method_focus", "type": "method"}, {"access": "", "host": "YAHOO.widget.RadioCellEditor", "name": "focus", "url": "YAHOO.widget.RadioCellEditor.html#method_focus", "type": "method"}, {"access": "", "host": "YAHOO.widget.TextareaCellEditor", "name": "focus", "url": "YAHOO.widget.TextareaCellEditor.html#method_focus", "type": "method"}, {"access": "", "host": "YAHOO.widget.TextboxCellEditor", "name": "focus", "url": "YAHOO.widget.TextboxCellEditor.html#method_focus", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "focus", "url": "YAHOO.widget.DataTable.html#method_focus", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_focusEl", "url": "YAHOO.widget.ScrollingDataTable.html#method__focusEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_focusEl", "url": "YAHOO.widget.DataTable.html#method__focusEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "focusTbodyEl", "url": "YAHOO.widget.DataTable.html#method_focusTbodyEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "focusTheadEl", "url": "YAHOO.widget.DataTable.html#method_focusTheadEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "formatCell", "url": "YAHOO.widget.DataTable.html#method_formatCell", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "formatRow", "url": "YAHOO.widget.DataTable.html#config_formatRow", "type": "config"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "formatRowChange", "url": "YAHOO.widget.DataTable.html#event_formatRowChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_formatTdEl", "url": "YAHOO.widget.DataTable.html#method__formatTdEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.Column", "name": "formatter", "url": "YAHOO.widget.Column.html#property_formatter", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "generateRequest", "url": "YAHOO.widget.DataTable.html#config_generateRequest", "type": "config"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "generateRequestChange", "url": "YAHOO.widget.DataTable.html#event_generateRequestChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getAboveTdEl", "url": "YAHOO.widget.DataTable.html#method_getAboveTdEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.ScrollingDataTable", "name": "getBdContainerEl", "url": "YAHOO.widget.ScrollingDataTable.html#method_getBdContainerEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.ScrollingDataTable", "name": "getBdTableEl", "url": "YAHOO.widget.ScrollingDataTable.html#method_getBdTableEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getBelowTdEl", "url": "YAHOO.widget.DataTable.html#method_getBelowTdEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getBody", "url": "YAHOO.widget.DataTable.html#method_getBody", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getCell", "url": "YAHOO.widget.DataTable.html#method_getCell", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getCellEditor", "url": "YAHOO.widget.DataTable.html#method_getCellEditor", "type": "method"}, {"access": "", "host": "YAHOO.widget.Column", "name": "getColEl", "url": "YAHOO.widget.Column.html#method_getColEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.Column", "name": "getColspan", "url": "YAHOO.widget.Column.html#method_getColspan", "type": "method"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "getColumn", "url": "YAHOO.widget.BaseCellEditor.html#method_getColumn", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getColumn", "url": "YAHOO.widget.DataTable.html#method_getColumn", "type": "method"}, {"access": "", "host": "YAHOO.widget.ColumnSet", "name": "getColumn", "url": "YAHOO.widget.ColumnSet.html#method_getColumn", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getColumnById", "url": "YAHOO.widget.DataTable.html#method_getColumnById", "type": "method"}, {"access": "", "host": "YAHOO.widget.ColumnSet", "name": "getColumnById", "url": "YAHOO.widget.ColumnSet.html#method_getColumnById", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_getColumnClassnames", "url": "YAHOO.widget.DataTable.html#method__getColumnClassnames", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getColumnSet", "url": "YAHOO.widget.DataTable.html#method_getColumnSet", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getColumnSortDir", "url": "YAHOO.widget.DataTable.html#method_getColumnSortDir", "type": "method"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "getContainerEl", "url": "YAHOO.widget.BaseCellEditor.html#method_getContainerEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getContainerEl", "url": "YAHOO.widget.DataTable.html#method_getContainerEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.Record", "name": "getCount", "url": "YAHOO.widget.Record.html#method_getCount", "type": "method"}, {"access": "", "host": "YAHOO.widget.Record", "name": "getData", "url": "YAHOO.widget.Record.html#method_getData", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getDataSource", "url": "YAHOO.widget.DataTable.html#method_getDataSource", "type": "method"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "getDataTable", "url": "YAHOO.widget.BaseCellEditor.html#method_getDataTable", "type": "method"}, {"access": "", "host": "YAHOO.widget.Column", "name": "getDefinition", "url": "YAHOO.widget.Column.html#method_getDefinition", "type": "method"}, {"access": "", "host": "YAHOO.widget.ColumnSet", "name": "getDefinitions", "url": "YAHOO.widget.ColumnSet.html#method_getDefinitions", "type": "method"}, {"access": "", "host": "YAHOO.widget.ColumnSet", "name": "getDescendants", "url": "YAHOO.widget.ColumnSet.html#method_getDescendants", "type": "method"}, {"access": "", "host": "YAHOO.widget.Column", "name": "getField", "url": "YAHOO.widget.Column.html#method_getField", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getFirstTdEl", "url": "YAHOO.widget.DataTable.html#method_getFirstTdEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getFirstTrEl", "url": "YAHOO.widget.DataTable.html#method_getFirstTrEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.ScrollingDataTable", "name": "getHdContainerEl", "url": "YAHOO.widget.ScrollingDataTable.html#method_getHdContainerEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.ScrollingDataTable", "name": "getHdTableEl", "url": "YAHOO.widget.ScrollingDataTable.html#method_getHdTableEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.RecordSet", "name": "getId", "url": "YAHOO.widget.RecordSet.html#method_getId", "type": "method"}, {"access": "", "host": "YAHOO.widget.Record", "name": "getId", "url": "YAHOO.widget.Record.html#method_getId", "type": "method"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "getId", "url": "YAHOO.widget.BaseCellEditor.html#method_getId", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getId", "url": "YAHOO.widget.DataTable.html#method_getId", "type": "method"}, {"access": "", "host": "YAHOO.widget.ColumnSet", "name": "getId", "url": "YAHOO.widget.ColumnSet.html#method_getId", "type": "method"}, {"access": "", "host": "YAHOO.widget.Column", "name": "getId", "url": "YAHOO.widget.Column.html#method_getId", "type": "method"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "getInputValue", "url": "YAHOO.widget.BaseCellEditor.html#method_getInputValue", "type": "method"}, {"access": "", "host": "YAHOO.widget.CheckboxCellEditor", "name": "getInputValue", "url": "YAHOO.widget.CheckboxCellEditor.html#method_getInputValue", "type": "method"}, {"access": "", "host": "YAHOO.widget.DateCellEditor", "name": "getInputValue", "url": "YAHOO.widget.DateCellEditor.html#method_getInputValue", "type": "method"}, {"access": "", "host": "YAHOO.widget.DropdownCellEditor", "name": "getInputValue", "url": "YAHOO.widget.DropdownCellEditor.html#method_getInputValue", "type": "method"}, {"access": "", "host": "YAHOO.widget.RadioCellEditor", "name": "getInputValue", "url": "YAHOO.widget.RadioCellEditor.html#method_getInputValue", "type": "method"}, {"access": "", "host": "YAHOO.widget.TextareaCellEditor", "name": "getInputValue", "url": "YAHOO.widget.TextareaCellEditor.html#method_getInputValue", "type": "method"}, {"access": "", "host": "YAHOO.widget.TextboxCellEditor", "name": "getInputValue", "url": "YAHOO.widget.TextboxCellEditor.html#method_getInputValue", "type": "method"}, {"access": "", "host": "YAHOO.widget.Column", "name": "getKey", "url": "YAHOO.widget.Column.html#method_getKey", "type": "method"}, {"access": "", "host": "YAHOO.widget.Column", "name": "getKeyIndex", "url": "YAHOO.widget.Column.html#method_getKeyIndex", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getLastSelectedCell", "url": "YAHOO.widget.DataTable.html#method_getLastSelectedCell", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getLastSelectedRecord", "url": "YAHOO.widget.DataTable.html#method_getLastSelectedRecord", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getLastTdEl", "url": "YAHOO.widget.DataTable.html#method_getLastTdEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getLastTrEl", "url": "YAHOO.widget.DataTable.html#method_getLastTrEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.RecordSet", "name": "getLength", "url": "YAHOO.widget.RecordSet.html#method_getLength", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getMsgTbodyEl", "url": "YAHOO.widget.DataTable.html#method_getMsgTbodyEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getMsgTdEl", "url": "YAHOO.widget.DataTable.html#method_getMsgTdEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getNextTdEl", "url": "YAHOO.widget.DataTable.html#method_getNextTdEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getNextTrEl", "url": "YAHOO.widget.DataTable.html#method_getNextTrEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.Column", "name": "getParent", "url": "YAHOO.widget.Column.html#method_getParent", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getPreviousTdEl", "url": "YAHOO.widget.DataTable.html#method_getPreviousTdEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getPreviousTrEl", "url": "YAHOO.widget.DataTable.html#method_getPreviousTrEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.RecordSet", "name": "getRecord", "url": "YAHOO.widget.RecordSet.html#method_getRecord", "type": "method"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "getRecord", "url": "YAHOO.widget.BaseCellEditor.html#method_getRecord", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getRecord", "url": "YAHOO.widget.DataTable.html#method_getRecord", "type": "method"}, {"access": "", "host": "YAHOO.widget.RecordSet", "name": "getRecordIndex", "url": "YAHOO.widget.RecordSet.html#method_getRecordIndex", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getRecordIndex", "url": "YAHOO.widget.DataTable.html#method_getRecordIndex", "type": "method"}, {"access": "", "host": "YAHOO.widget.RecordSet", "name": "getRecords", "url": "YAHOO.widget.RecordSet.html#method_getRecords", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getRecordSet", "url": "YAHOO.widget.DataTable.html#method_getRecordSet", "type": "method"}, {"access": "", "host": "YAHOO.widget.Column", "name": "getResizerEl", "url": "YAHOO.widget.Column.html#method_getResizerEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getRow", "url": "YAHOO.widget.DataTable.html#method_getRow", "type": "method"}, {"access": "", "host": "YAHOO.widget.Column", "name": "getRowspan", "url": "YAHOO.widget.Column.html#method_getRowspan", "type": "method"}, {"access": "", "host": "YAHOO.widget.Column", "name": "getSanitizedKey", "url": "YAHOO.widget.Column.html#method_getSanitizedKey", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getSelectedCells", "url": "YAHOO.widget.DataTable.html#method_getSelectedCells", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getSelectedColumns", "url": "YAHOO.widget.DataTable.html#method_getSelectedColumns", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getSelectedRows", "url": "YAHOO.widget.DataTable.html#method_getSelectedRows", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getSelectedTdEls", "url": "YAHOO.widget.DataTable.html#method_getSelectedTdEls", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getSelectedTrEls", "url": "YAHOO.widget.DataTable.html#method_getSelectedTrEls", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_getSelectionAnchor", "url": "YAHOO.widget.DataTable.html#method__getSelectionAnchor", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_getSelectionTrigger", "url": "YAHOO.widget.DataTable.html#method__getSelectionTrigger", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getState", "url": "YAHOO.widget.DataTable.html#method_getState", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getTableEl", "url": "YAHOO.widget.DataTable.html#method_getTableEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getTbodyEl", "url": "YAHOO.widget.DataTable.html#method_getTbodyEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "getTdEl", "url": "YAHOO.widget.BaseCellEditor.html#method_getTdEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getTdEl", "url": "YAHOO.widget.DataTable.html#method_getTdEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getTdLinerEl", "url": "YAHOO.widget.DataTable.html#method_getTdLinerEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getTheadEl", "url": "YAHOO.widget.DataTable.html#method_getTheadEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getThEl", "url": "YAHOO.widget.DataTable.html#method_getThEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.Column", "name": "getThEl", "url": "YAHOO.widget.Column.html#method_getThEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getThLinerEl", "url": "YAHOO.widget.DataTable.html#method_getThLinerEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.Column", "name": "getThLInerEl", "url": "YAHOO.widget.Column.html#method_getThLInerEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.Column", "name": "getTreeIndex", "url": "YAHOO.widget.Column.html#method_getTreeIndex", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getTrEl", "url": "YAHOO.widget.DataTable.html#method_getTrEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "getTrIndex", "url": "YAHOO.widget.DataTable.html#method_getTrIndex", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_getTrTemplateEl", "url": "YAHOO.widget.DataTable.html#method__getTrTemplateEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_handleCellBlockSelectionByKey", "url": "YAHOO.widget.DataTable.html#method__handleCellBlockSelectionByKey", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_handleCellBlockSelectionByMouse", "url": "YAHOO.widget.DataTable.html#method__handleCellBlockSelectionByMouse", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_handleCellRangeSelectionByKey", "url": "YAHOO.widget.DataTable.html#method__handleCellRangeSelectionByKey", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_handleCellRangeSelectionByMouse", "url": "YAHOO.widget.DataTable.html#method__handleCellRangeSelectionByMouse", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "handleDataReturnPayload", "url": "YAHOO.widget.DataTable.html#method_handleDataReturnPayload", "type": "method"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "handleDisabledBtns", "url": "YAHOO.widget.BaseCellEditor.html#method_handleDisabledBtns", "type": "method"}, {"access": "", "host": "YAHOO.widget.CheckboxCellEditor", "name": "handleDisabledBtns", "url": "YAHOO.widget.CheckboxCellEditor.html#method_handleDisabledBtns", "type": "method"}, {"access": "", "host": "YAHOO.widget.DateCellEditor", "name": "handleDisabledBtns", "url": "YAHOO.widget.DateCellEditor.html#method_handleDisabledBtns", "type": "method"}, {"access": "", "host": "YAHOO.widget.DropdownCellEditor", "name": "handleDisabledBtns", "url": "YAHOO.widget.DropdownCellEditor.html#method_handleDisabledBtns", "type": "method"}, {"access": "", "host": "YAHOO.widget.RadioCellEditor", "name": "handleDisabledBtns", "url": "YAHOO.widget.RadioCellEditor.html#method_handleDisabledBtns", "type": "method"}, {"access": "", "host": "YAHOO.widget.TextareaCellEditor", "name": "handleDisabledBtns", "url": "YAHOO.widget.TextareaCellEditor.html#method_handleDisabledBtns", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_handlePaginatorChange", "url": "YAHOO.widget.DataTable.html#method__handlePaginatorChange", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_handleSingleCellSelectionByKey", "url": "YAHOO.widget.DataTable.html#method__handleSingleCellSelectionByKey", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_handleSingleCellSelectionByMouse", "url": "YAHOO.widget.DataTable.html#method__handleSingleCellSelectionByMouse", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_handleSingleSelectionByKey", "url": "YAHOO.widget.DataTable.html#method__handleSingleSelectionByKey", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_handleSingleSelectionByMouse", "url": "YAHOO.widget.DataTable.html#method__handleSingleSelectionByMouse", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_handleStandardSelectionByKey", "url": "YAHOO.widget.DataTable.html#method__handleStandardSelectionByKey", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_handleStandardSelectionByMouse", "url": "YAHOO.widget.DataTable.html#method__handleStandardSelectionByMouse", "type": "method"}, {"access": "", "host": "YAHOO.widget.RecordSet", "name": "hasRecords", "url": "YAHOO.widget.RecordSet.html#method_hasRecords", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "headerCellClickEvent", "url": "YAHOO.widget.DataTable.html#event_headerCellClickEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "headerCellDblclickEvent", "url": "YAHOO.widget.DataTable.html#event_headerCellDblclickEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "headerCellMousedownEvent", "url": "YAHOO.widget.DataTable.html#event_headerCellMousedownEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "headerCellMouseoutEvent", "url": "YAHOO.widget.DataTable.html#event_headerCellMouseoutEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "headerCellMouseoverEvent", "url": "YAHOO.widget.DataTable.html#event_headerCellMouseoverEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "headerLabelClickEvent", "url": "YAHOO.widget.DataTable.html#event_headerLabelClickEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "headerLabelDbllickEvent", "url": "YAHOO.widget.DataTable.html#event_headerLabelDbllickEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "headerLabelMousedownEvent", "url": "YAHOO.widget.DataTable.html#event_headerLabelMousedownEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "headerLabelMouseoutEvent", "url": "YAHOO.widget.DataTable.html#event_headerLabelMouseoutEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "headerLabelMouseoverEvent", "url": "YAHOO.widget.DataTable.html#event_headerLabelMouseoverEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "headerRowClickEvent", "url": "YAHOO.widget.DataTable.html#event_headerRowClickEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "headerRowDblclickEvent", "url": "YAHOO.widget.DataTable.html#event_headerRowDblclickEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "headerRowMousedownEvent", "url": "YAHOO.widget.DataTable.html#event_headerRowMousedownEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "headerRowMouseoutEvent", "url": "YAHOO.widget.DataTable.html#event_headerRowMouseoutEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "headerRowMouseoverEvent", "url": "YAHOO.widget.DataTable.html#event_headerRowMouseoverEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.ColumnSet", "name": "headers", "url": "YAHOO.widget.ColumnSet.html#property_headers", "type": "property"}, {"access": "", "host": "YAHOO.widget.ScrollingDataTable", "name": "height", "url": "YAHOO.widget.ScrollingDataTable.html#config_height", "type": "config"}, {"access": "", "host": "YAHOO.widget.ScrollingDataTable", "name": "heightChange", "url": "YAHOO.widget.ScrollingDataTable.html#event_heightChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Column", "name": "hidden", "url": "YAHOO.widget.Column.html#property_hidden", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "hideColumn", "url": "YAHOO.widget.DataTable.html#method_hideColumn", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "hideTableMessage", "url": "YAHOO.widget.DataTable.html#method_hideTableMessage", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "highlightCell", "url": "YAHOO.widget.DataTable.html#method_highlightCell", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "highlightColumn", "url": "YAHOO.widget.DataTable.html#method_highlightColumn", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "highlightRow", "url": "YAHOO.widget.DataTable.html#method_highlightRow", "type": "method"}, {"access": "private", "host": "YAHOO.util.Chain", "name": "id", "url": "YAHOO.util.Chain.html#property_id", "type": "property"}, {"access": "private", "host": "YAHOO.widget.ColumnSet", "name": "_init", "url": "YAHOO.widget.ColumnSet.html#method__init", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "initAttributes", "url": "YAHOO.widget.ScrollingDataTable.html#method_initAttributes", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "initAttributes", "url": "YAHOO.widget.DataTable.html#method_initAttributes", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_initBdTheadEl", "url": "YAHOO.widget.ScrollingDataTable.html#method__initBdTheadEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_initBdThEl", "url": "YAHOO.widget.ScrollingDataTable.html#method__initBdThEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_initCaptionEl", "url": "YAHOO.widget.ScrollingDataTable.html#method__initCaptionEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_initCaptionEl", "url": "YAHOO.widget.DataTable.html#method__initCaptionEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_initCellEditing", "url": "YAHOO.widget.DataTable.html#method__initCellEditing", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_initCellEditorEl", "url": "YAHOO.widget.DataTable.html#method__initCellEditorEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_initColgroupEl", "url": "YAHOO.widget.DataTable.html#method__initColgroupEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_initColumnHelpers", "url": "YAHOO.widget.DataTable.html#method__initColumnHelpers", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_initColumnSet", "url": "YAHOO.widget.DataTable.html#method__initColumnSet", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_initColumnSort", "url": "YAHOO.widget.DataTable.html#method__initColumnSort", "type": "method"}, {"access": "private", "host": "YAHOO.widget.BaseCellEditor", "name": "_initConfigs", "url": "YAHOO.widget.BaseCellEditor.html#method__initConfigs", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_initConfigs", "url": "YAHOO.widget.DataTable.html#method__initConfigs", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_initContainerEl", "url": "YAHOO.widget.ScrollingDataTable.html#method__initContainerEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_initContainerEl", "url": "YAHOO.widget.DataTable.html#method__initContainerEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_initDataSource", "url": "YAHOO.widget.DataTable.html#method__initDataSource", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_initDomElements", "url": "YAHOO.widget.ScrollingDataTable.html#method__initDomElements", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_initDomElements", "url": "YAHOO.widget.DataTable.html#method__initDomElements", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_initDraggableColumns", "url": "YAHOO.widget.DataTable.html#method__initDraggableColumns", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "initEvent", "url": "YAHOO.widget.DataTable.html#event_initEvent", "type": "event"}, {"access": "private", "host": "YAHOO.widget.BaseCellEditor", "name": "_initEvents", "url": "YAHOO.widget.BaseCellEditor.html#method__initEvents", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_initEvents", "url": "YAHOO.widget.DataTable.html#method__initEvents", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "initializeTable", "url": "YAHOO.widget.DataTable.html#method_initializeTable", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "initialLoad", "url": "YAHOO.widget.DataTable.html#config_initialLoad", "type": "config"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "initialLoadChange", "url": "YAHOO.widget.DataTable.html#event_initialLoadChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "initialRequest", "url": "YAHOO.widget.DataTable.html#config_initialRequest", "type": "config"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "initialRequestChange", "url": "YAHOO.widget.DataTable.html#event_initialRequestChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_initMsgTbodyEl", "url": "YAHOO.widget.DataTable.html#method__initMsgTbodyEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_initRecordSet", "url": "YAHOO.widget.DataTable.html#method__initRecordSet", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_initResizeableColumns", "url": "YAHOO.widget.DataTable.html#method__initResizeableColumns", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_initTableEl", "url": "YAHOO.widget.ScrollingDataTable.html#method__initTableEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_initTableEl", "url": "YAHOO.widget.DataTable.html#method__initTableEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_initTbodyEl", "url": "YAHOO.widget.ScrollingDataTable.html#method__initTbodyEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_initTbodyEl", "url": "YAHOO.widget.DataTable.html#method__initTbodyEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_initTheadEl", "url": "YAHOO.widget.ScrollingDataTable.html#method__initTheadEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_initTheadEl", "url": "YAHOO.widget.DataTable.html#method__initTheadEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_initThEl", "url": "YAHOO.widget.ScrollingDataTable.html#method__initThEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_initThEl", "url": "YAHOO.widget.DataTable.html#method__initThEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_insertColgroupColEl", "url": "YAHOO.widget.DataTable.html#method__insertColgroupColEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.ScrollingDataTable", "name": "insertColumn", "url": "YAHOO.widget.ScrollingDataTable.html#method_insertColumn", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "insertColumn", "url": "YAHOO.widget.DataTable.html#method_insertColumn", "type": "method"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "invalidDataEvent", "url": "YAHOO.widget.BaseCellEditor.html#event_invalidDataEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "isActive", "url": "YAHOO.widget.BaseCellEditor.html#property_isActive", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "isSelected", "url": "YAHOO.widget.DataTable.html#method_isSelected", "type": "method"}, {"access": "", "host": "YAHOO.widget.Column", "name": "key", "url": "YAHOO.widget.Column.html#property_key", "type": "property"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "keydownEvent", "url": "YAHOO.widget.BaseCellEditor.html#event_keydownEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.ColumnSet", "name": "keys", "url": "YAHOO.widget.ColumnSet.html#property_keys", "type": "property"}, {"access": "", "host": "YAHOO.widget.RecordSet", "name": "keyUpdateEvent", "url": "YAHOO.widget.RecordSet.html#event_keyUpdateEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.Column", "name": "label", "url": "YAHOO.widget.Column.html#property_label", "type": "property"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "LABEL_CANCEL", "url": "YAHOO.widget.BaseCellEditor.html#property_LABEL_CANCEL", "type": "property"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "LABEL_SAVE", "url": "YAHOO.widget.BaseCellEditor.html#property_LABEL_SAVE", "type": "property"}, {"access": "private", "host": "YAHOO.widget.RecordSet", "name": "_length", "url": "YAHOO.widget.RecordSet.html#property__length", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "linkClickEvent", "url": "YAHOO.widget.DataTable.html#event_linkClickEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.Column", "name": "maxAutoWidth", "url": "YAHOO.widget.Column.html#property_maxAutoWidth", "type": "property"}, {"access": "", "host": "YAHOO.widget.Column", "name": "minWidth", "url": "YAHOO.widget.Column.html#property_minWidth", "type": "property"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "move", "url": "YAHOO.widget.BaseCellEditor.html#method_move", "type": "method"}, {"access": "", "host": "YAHOO.widget.TextareaCellEditor", "name": "move", "url": "YAHOO.widget.TextareaCellEditor.html#method_move", "type": "method"}, {"access": "", "host": "YAHOO.widget.TextboxCellEditor", "name": "move", "url": "YAHOO.widget.TextboxCellEditor.html#method_move", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "MSG_EMPTY", "url": "YAHOO.widget.DataTable.html#config_MSG_EMPTY", "type": "config"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "MSG_EMPTYChange", "url": "YAHOO.widget.DataTable.html#event_MSG_EMPTYChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "MSG_ERROR", "url": "YAHOO.widget.DataTable.html#config_MSG_ERROR", "type": "config"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "MSG_ERRORChange", "url": "YAHOO.widget.DataTable.html#event_MSG_ERRORChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "MSG_LOADING", "url": "YAHOO.widget.DataTable.html#config_MSG_LOADING", "type": "config"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "MSG_LOADINGChange", "url": "YAHOO.widget.DataTable.html#event_MSG_LOADINGChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "MSG_SORTASC", "url": "YAHOO.widget.DataTable.html#config_MSG_SORTASC", "type": "config"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "MSG_SORTASCChange", "url": "YAHOO.widget.DataTable.html#event_MSG_SORTASCChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "MSG_SORTDESC", "url": "YAHOO.widget.DataTable.html#config_MSG_SORTDESC", "type": "config"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "MSG_SORTDESCChange", "url": "YAHOO.widget.DataTable.html#event_MSG_SORTDESCChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.Column", "name": "_nColspan", "url": "YAHOO.widget.Column.html#property__nColspan", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Record", "name": "_nCount", "url": "YAHOO.widget.Record.html#property__nCount", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_nIndex", "url": "YAHOO.widget.DataTable.html#property__nIndex", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Column", "name": "_nKeyIndex", "url": "YAHOO.widget.Column.html#property__nKeyIndex", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Column", "name": "_nRowspan", "url": "YAHOO.widget.Column.html#property__nRowspan", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_nTdCount", "url": "YAHOO.widget.DataTable.html#property__nTdCount", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_nTrCount", "url": "YAHOO.widget.DataTable.html#property__nTrCount", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Column", "name": "_nTreeIndex", "url": "YAHOO.widget.Column.html#property__nTreeIndex", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "numberOptions", "url": "YAHOO.widget.DataTable.html#config_numberOptions", "type": "config"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "numberOptionsChange", "url": "YAHOO.widget.DataTable.html#event_numberOptionsChange", "type": "event"}, {"access": "private", "host": "YAHOO.widget.Column", "name": "_nWidth", "url": "YAHOO.widget.Column.html#property__nWidth", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_oAnchorCell", "url": "YAHOO.widget.DataTable.html#property__oAnchorCell", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_oAnchorRecord", "url": "YAHOO.widget.DataTable.html#property__oAnchorRecord", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_oCellEditor", "url": "YAHOO.widget.DataTable.html#property__oCellEditor", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_oChainRender", "url": "YAHOO.widget.DataTable.html#property__oChainRender", "type": "property"}, {"access": "private", "host": "YAHOO.widget.BaseCellEditor", "name": "_oColumn", "url": "YAHOO.widget.BaseCellEditor.html#property__oColumn", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_oColumnSet", "url": "YAHOO.widget.DataTable.html#property__oColumnSet", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Record", "name": "_oData", "url": "YAHOO.widget.Record.html#property__oData", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_oDataSource", "url": "YAHOO.widget.DataTable.html#property__oDataSource", "type": "property"}, {"access": "private", "host": "YAHOO.widget.BaseCellEditor", "name": "_oDataTable", "url": "YAHOO.widget.BaseCellEditor.html#property__oDataTable", "type": "property"}, {"access": "", "host": "YAHOO.widget.ScrollingDataTable", "name": "onColumnChange", "url": "YAHOO.widget.ScrollingDataTable.html#method_onColumnChange", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "onDataReturnAppendRows", "url": "YAHOO.widget.DataTable.html#method_onDataReturnAppendRows", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "onDataReturnInitializeTable", "url": "YAHOO.widget.DataTable.html#method_onDataReturnInitializeTable", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "onDataReturnInsertRows", "url": "YAHOO.widget.DataTable.html#method_onDataReturnInsertRows", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "onDataReturnReplaceRows", "url": "YAHOO.widget.DataTable.html#method_onDataReturnReplaceRows", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "onDataReturnSetRecords", "url": "YAHOO.widget.DataTable.html#method_onDataReturnSetRecords", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "onDataReturnSetRows", "url": "YAHOO.widget.DataTable.html#method_onDataReturnSetRows", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "onDataReturnUpdateRows", "url": "YAHOO.widget.DataTable.html#method_onDataReturnUpdateRows", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_onDocumentClick", "url": "YAHOO.widget.DataTable.html#method__onDocumentClick", "type": "method"}, {"access": "", "host": "YAHOO.util.ColumnResizer", "name": "onDrag", "url": "YAHOO.util.ColumnResizer.html#method_onDrag", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_onDropdownChange", "url": "YAHOO.widget.DataTable.html#method__onDropdownChange", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_onEditorBlockEvent", "url": "YAHOO.widget.DataTable.html#method__onEditorBlockEvent", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "onEditorBlockEvent", "url": "YAHOO.widget.DataTable.html#method_onEditorBlockEvent", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_onEditorBlurEvent", "url": "YAHOO.widget.DataTable.html#method__onEditorBlurEvent", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "onEditorBlurEvent", "url": "YAHOO.widget.DataTable.html#method_onEditorBlurEvent", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_onEditorCancelEvent", "url": "YAHOO.widget.DataTable.html#method__onEditorCancelEvent", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_onEditorKeydownEvent", "url": "YAHOO.widget.DataTable.html#method__onEditorKeydownEvent", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_onEditorRevertEvent", "url": "YAHOO.widget.DataTable.html#method__onEditorRevertEvent", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_onEditorSaveEvent", "url": "YAHOO.widget.DataTable.html#method__onEditorSaveEvent", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_onEditorShowEvent", "url": "YAHOO.widget.DataTable.html#method__onEditorShowEvent", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_onEditorUnblockEvent", "url": "YAHOO.widget.DataTable.html#method__onEditorUnblockEvent", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "onEditorUnblockEvent", "url": "YAHOO.widget.DataTable.html#method_onEditorUnblockEvent", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "onEventCancelCellEditor", "url": "YAHOO.widget.DataTable.html#method_onEventCancelCellEditor", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "onEventEditCell", "url": "YAHOO.widget.DataTable.html#method_onEventEditCell", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "onEventFormatCell", "url": "YAHOO.widget.DataTable.html#method_onEventFormatCell", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "onEventHighlightCell", "url": "YAHOO.widget.DataTable.html#method_onEventHighlightCell", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "onEventHighlightColumn", "url": "YAHOO.widget.DataTable.html#method_onEventHighlightColumn", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "onEventHighlightRow", "url": "YAHOO.widget.DataTable.html#method_onEventHighlightRow", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "onEventSaveCellEditor", "url": "YAHOO.widget.DataTable.html#method_onEventSaveCellEditor", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "onEventSelectCell", "url": "YAHOO.widget.DataTable.html#method_onEventSelectCell", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "onEventSelectColumn", "url": "YAHOO.widget.DataTable.html#method_onEventSelectColumn", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "onEventSelectRow", "url": "YAHOO.widget.DataTable.html#method_onEventSelectRow", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "onEventShowCellEditor", "url": "YAHOO.widget.DataTable.html#method_onEventShowCellEditor", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "onEventSortColumn", "url": "YAHOO.widget.DataTable.html#method_onEventSortColumn", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "onEventUnhighlightCell", "url": "YAHOO.widget.DataTable.html#method_onEventUnhighlightCell", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "onEventUnhighlightColumn", "url": "YAHOO.widget.DataTable.html#method_onEventUnhighlightColumn", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "onEventUnhighlightRow", "url": "YAHOO.widget.DataTable.html#method_onEventUnhighlightRow", "type": "method"}, {"access": "", "host": "YAHOO.util.ColumnResizer", "name": "onMouseDown", "url": "YAHOO.util.ColumnResizer.html#method_onMouseDown", "type": "method"}, {"access": "", "host": "YAHOO.util.ColumnResizer", "name": "onMouseUp", "url": "YAHOO.util.ColumnResizer.html#method_onMouseUp", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "onPaginatorChange", "url": "YAHOO.widget.DataTable.html#method_onPaginatorChange", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "onPaginatorChangeRequest", "url": "YAHOO.widget.DataTable.html#method_onPaginatorChangeRequest", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_onRenderChainEnd", "url": "YAHOO.widget.DataTable.html#method__onRenderChainEnd", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_onScroll", "url": "YAHOO.widget.ScrollingDataTable.html#method__onScroll", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "onShow", "url": "YAHOO.widget.DataTable.html#method_onShow", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_onTableDblclick", "url": "YAHOO.widget.DataTable.html#method__onTableDblclick", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_onTableFocus", "url": "YAHOO.widget.DataTable.html#method__onTableFocus", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_onTableKeypress", "url": "YAHOO.widget.DataTable.html#method__onTableKeypress", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_onTableMousedown", "url": "YAHOO.widget.DataTable.html#method__onTableMousedown", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_onTableMouseout", "url": "YAHOO.widget.DataTable.html#method__onTableMouseout", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_onTableMouseover", "url": "YAHOO.widget.DataTable.html#method__onTableMouseover", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_onTableMouseup", "url": "YAHOO.widget.DataTable.html#method__onTableMouseup", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_onTbodyClick", "url": "YAHOO.widget.DataTable.html#method__onTbodyClick", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_onTbodyFocus", "url": "YAHOO.widget.DataTable.html#method__onTbodyFocus", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_onTbodyKeydown", "url": "YAHOO.widget.DataTable.html#method__onTbodyKeydown", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_onTheadClick", "url": "YAHOO.widget.DataTable.html#method__onTheadClick", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_onTheadFocus", "url": "YAHOO.widget.DataTable.html#method__onTheadFocus", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_onTheadKeydown", "url": "YAHOO.widget.ScrollingDataTable.html#method__onTheadKeydown", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_onTheadKeydown", "url": "YAHOO.widget.DataTable.html#method__onTheadKeydown", "type": "method"}, {"access": "private", "host": "YAHOO.widget.Column", "name": "_oParent", "url": "YAHOO.widget.Column.html#property__oParent", "type": "property"}, {"access": "private", "host": "YAHOO.widget.BaseCellEditor", "name": "_oRecord", "url": "YAHOO.widget.BaseCellEditor.html#property__oRecord", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_oRecordSet", "url": "YAHOO.widget.DataTable.html#property__oRecordSet", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "paginator", "url": "YAHOO.widget.DataTable.html#config_paginator", "type": "config"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "paginatorChange", "url": "YAHOO.widget.DataTable.html#event_paginatorChange", "type": "event"}, {"access": "", "host": "YAHOO.util.Chain", "name": "pause", "url": "YAHOO.util.Chain.html#method_pause", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "postRenderEvent", "url": "YAHOO.widget.DataTable.html#event_postRenderEvent", "type": "event"}, {"access": "private", "host": "YAHOO.util.Chain", "name": "q", "url": "YAHOO.util.Chain.html#property_q", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "radioClickEvent", "url": "YAHOO.widget.DataTable.html#event_radioClickEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.RadioCellEditor", "name": "radioOptions", "url": "YAHOO.widget.RadioCellEditor.html#property_radioOptions", "type": "property"}, {"access": "", "host": "YAHOO.widget.RadioCellEditor", "name": "radios", "url": "YAHOO.widget.RadioCellEditor.html#property_radios", "type": "property"}, {"access": "", "host": "YAHOO.widget.RecordSet", "name": "recordAddEvent", "url": "YAHOO.widget.RecordSet.html#event_recordAddEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.RecordSet", "name": "recordDeleteEvent", "url": "YAHOO.widget.RecordSet.html#event_recordDeleteEvent", "type": "event"}, {"access": "private", "host": "YAHOO.widget.Record", "name": "Record._nCount", "url": "YAHOO.widget.Record.html#property_Record._nCount", "type": "property"}, {"access": "", "host": "YAHOO.widget.RecordSet", "name": "recordsAddEvent", "url": "YAHOO.widget.RecordSet.html#event_recordsAddEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.RecordSet", "name": "recordsDeleteEvent", "url": "YAHOO.widget.RecordSet.html#event_recordsDeleteEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.RecordSet", "name": "recordSetEvent", "url": "YAHOO.widget.RecordSet.html#event_recordSetEvent", "type": "event"}, {"access": "private", "host": "YAHOO.widget.RecordSet", "name": "RecordSet._nCount", "url": "YAHOO.widget.RecordSet.html#property_RecordSet._nCount", "type": "property"}, {"access": "", "host": "YAHOO.widget.RecordSet", "name": "recordsSetEvent", "url": "YAHOO.widget.RecordSet.html#event_recordsSetEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.RecordSet", "name": "recordUpdateEvent", "url": "YAHOO.widget.RecordSet.html#event_recordUpdateEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.RecordSet", "name": "recordValueUpdateEvent", "url": "YAHOO.widget.RecordSet.html#event_recordValueUpdateEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "refreshView", "url": "YAHOO.widget.DataTable.html#method_refreshView", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_removeColgroupColEl", "url": "YAHOO.widget.DataTable.html#method__removeColgroupColEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.ScrollingDataTable", "name": "removeColumn", "url": "YAHOO.widget.ScrollingDataTable.html#method_removeColumn", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "removeColumn", "url": "YAHOO.widget.DataTable.html#method_removeColumn", "type": "method"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "render", "url": "YAHOO.widget.BaseCellEditor.html#method_render", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "render", "url": "YAHOO.widget.DataTable.html#method_render", "type": "method"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "renderBtns", "url": "YAHOO.widget.BaseCellEditor.html#method_renderBtns", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "renderEvent", "url": "YAHOO.widget.DataTable.html#event_renderEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "renderForm", "url": "YAHOO.widget.BaseCellEditor.html#method_renderForm", "type": "method"}, {"access": "", "host": "YAHOO.widget.CheckboxCellEditor", "name": "renderForm", "url": "YAHOO.widget.CheckboxCellEditor.html#method_renderForm", "type": "method"}, {"access": "", "host": "YAHOO.widget.DateCellEditor", "name": "renderForm", "url": "YAHOO.widget.DateCellEditor.html#method_renderForm", "type": "method"}, {"access": "", "host": "YAHOO.widget.DropdownCellEditor", "name": "renderForm", "url": "YAHOO.widget.DropdownCellEditor.html#method_renderForm", "type": "method"}, {"access": "", "host": "YAHOO.widget.RadioCellEditor", "name": "renderForm", "url": "YAHOO.widget.RadioCellEditor.html#method_renderForm", "type": "method"}, {"access": "", "host": "YAHOO.widget.TextareaCellEditor", "name": "renderForm", "url": "YAHOO.widget.TextareaCellEditor.html#method_renderForm", "type": "method"}, {"access": "", "host": "YAHOO.widget.TextboxCellEditor", "name": "renderForm", "url": "YAHOO.widget.TextboxCellEditor.html#method_renderForm", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "renderLoopSize", "url": "YAHOO.widget.DataTable.html#config_renderLoopSize", "type": "config"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "renderLoopSizeChange", "url": "YAHOO.widget.DataTable.html#event_renderLoopSizeChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "renderPaginator", "url": "YAHOO.widget.DataTable.html#method_renderPaginator", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_reorderColgroupColEl", "url": "YAHOO.widget.DataTable.html#method__reorderColgroupColEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.ScrollingDataTable", "name": "reorderColumn", "url": "YAHOO.widget.ScrollingDataTable.html#method_reorderColumn", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "reorderColumn", "url": "YAHOO.widget.DataTable.html#method_reorderColumn", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_repaintGecko", "url": "YAHOO.widget.DataTable.html#method__repaintGecko", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_repaintOpera", "url": "YAHOO.widget.DataTable.html#method__repaintOpera", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_repaintWebkit", "url": "YAHOO.widget.DataTable.html#method__repaintWebkit", "type": "method"}, {"access": "", "host": "YAHOO.widget.RecordSet", "name": "replaceRecords", "url": "YAHOO.widget.RecordSet.html#method_replaceRecords", "type": "method"}, {"access": "", "host": "YAHOO.widget.RecordSet", "name": "reset", "url": "YAHOO.widget.RecordSet.html#method_reset", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "resetCellEditor", "url": "YAHOO.widget.DataTable.html#method_resetCellEditor", "type": "method"}, {"access": "", "host": "YAHOO.widget.RecordSet", "name": "resetEvent", "url": "YAHOO.widget.RecordSet.html#event_resetEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "resetForm", "url": "YAHOO.widget.BaseCellEditor.html#method_resetForm", "type": "method"}, {"access": "", "host": "YAHOO.widget.CheckboxCellEditor", "name": "resetForm", "url": "YAHOO.widget.CheckboxCellEditor.html#method_resetForm", "type": "method"}, {"access": "", "host": "YAHOO.widget.DateCellEditor", "name": "resetForm", "url": "YAHOO.widget.DateCellEditor.html#method_resetForm", "type": "method"}, {"access": "", "host": "YAHOO.widget.DropdownCellEditor", "name": "resetForm", "url": "YAHOO.widget.DropdownCellEditor.html#method_resetForm", "type": "method"}, {"access": "", "host": "YAHOO.widget.RadioCellEditor", "name": "resetForm", "url": "YAHOO.widget.RadioCellEditor.html#method_resetForm", "type": "method"}, {"access": "", "host": "YAHOO.widget.TextareaCellEditor", "name": "resetForm", "url": "YAHOO.widget.TextareaCellEditor.html#method_resetForm", "type": "method"}, {"access": "", "host": "YAHOO.widget.TextboxCellEditor", "name": "resetForm", "url": "YAHOO.widget.TextboxCellEditor.html#method_resetForm", "type": "method"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "resetInvalidData", "url": "YAHOO.widget.BaseCellEditor.html#property_resetInvalidData", "type": "property"}, {"access": "", "host": "YAHOO.util.ColumnResizer", "name": "resetResizerEl", "url": "YAHOO.util.ColumnResizer.html#method_resetResizerEl", "type": "method"}, {"access": "", "host": "YAHOO.widget.Column", "name": "resizeable", "url": "YAHOO.widget.Column.html#property_resizeable", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_restoreMinWidth", "url": "YAHOO.widget.DataTable.html#method__restoreMinWidth", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_retoreScrollPositions", "url": "YAHOO.widget.ScrollingDataTable.html#method__retoreScrollPositions", "type": "method"}, {"access": "", "host": "YAHOO.widget.RecordSet", "name": "reverseRecords", "url": "YAHOO.widget.RecordSet.html#method_reverseRecords", "type": "method"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "revertEvent", "url": "YAHOO.widget.BaseCellEditor.html#event_revertEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "rowAddEvent", "url": "YAHOO.widget.DataTable.html#event_rowAddEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "rowClickEvent", "url": "YAHOO.widget.DataTable.html#event_rowClickEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "rowDblclickEvent", "url": "YAHOO.widget.DataTable.html#event_rowDblclickEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "rowDeleteEvent", "url": "YAHOO.widget.DataTable.html#event_rowDeleteEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "rowHighlightEvent", "url": "YAHOO.widget.DataTable.html#event_rowHighlightEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "rowMousedownEvent", "url": "YAHOO.widget.DataTable.html#event_rowMousedownEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "rowMouseoutEvent", "url": "YAHOO.widget.DataTable.html#event_rowMouseoutEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "rowMouseoverEvent", "url": "YAHOO.widget.DataTable.html#event_rowMouseoverEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "rowMouseupEvent", "url": "YAHOO.widget.DataTable.html#event_rowMouseupEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "rowsAddEvent", "url": "YAHOO.widget.DataTable.html#event_rowsAddEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "rowsDeleteEvent", "url": "YAHOO.widget.DataTable.html#event_rowsDeleteEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "rowSelectEvent", "url": "YAHOO.widget.DataTable.html#event_rowSelectEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "rowUnhighlightEvent", "url": "YAHOO.widget.DataTable.html#event_rowUnhighlightEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "rowUnselectEvent", "url": "YAHOO.widget.DataTable.html#event_rowUnselectEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "rowUpdateEvent", "url": "YAHOO.widget.DataTable.html#event_rowUpdateEvent", "type": "event"}, {"access": "", "host": "YAHOO.util.ColumnResizer", "name": "rsRecordSetTemplate", "url": "YAHOO.util.ColumnResizer.html#property_rsRecordSetTemplate", "type": "property"}, {"access": "", "host": "YAHOO.util.Chain", "name": "run", "url": "YAHOO.util.Chain.html#method_run", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_runRenderChain", "url": "YAHOO.widget.ScrollingDataTable.html#method__runRenderChain", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_runRenderChain", "url": "YAHOO.widget.DataTable.html#method__runRenderChain", "type": "method"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "save", "url": "YAHOO.widget.BaseCellEditor.html#method_save", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "saveCellEditor", "url": "YAHOO.widget.DataTable.html#method_saveCellEditor", "type": "method"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "saveEvent", "url": "YAHOO.widget.BaseCellEditor.html#event_saveEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "select", "url": "YAHOO.widget.DataTable.html#method_select", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "selectCell", "url": "YAHOO.widget.DataTable.html#method_selectCell", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "selectColumn", "url": "YAHOO.widget.DataTable.html#method_selectColumn", "type": "method"}, {"access": "", "host": "YAHOO.widget.Column", "name": "selected", "url": "YAHOO.widget.Column.html#property_selected", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "selectionMode", "url": "YAHOO.widget.DataTable.html#config_selectionMode", "type": "config"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "selectionModeChange", "url": "YAHOO.widget.DataTable.html#event_selectionModeChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "selectRow", "url": "YAHOO.widget.DataTable.html#method_selectRow", "type": "method"}, {"access": "", "host": "YAHOO.widget.ScrollingDataTable", "name": "setColumnWidth", "url": "YAHOO.widget.ScrollingDataTable.html#method_setColumnWidth", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_setColumnWidth", "url": "YAHOO.widget.DataTable.html#method__setColumnWidth", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "setColumnWidth", "url": "YAHOO.widget.DataTable.html#method_setColumnWidth", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_setColumnWidthDynFunction", "url": "YAHOO.widget.DataTable.html#method__setColumnWidthDynFunction", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_setColumnWidthDynStyles", "url": "YAHOO.widget.DataTable.html#method__setColumnWidthDynStyles", "type": "method"}, {"access": "", "host": "YAHOO.widget.Record", "name": "setData", "url": "YAHOO.widget.Record.html#method_setData", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_setFirstRow", "url": "YAHOO.widget.DataTable.html#method__setFirstRow", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_setLastRow", "url": "YAHOO.widget.DataTable.html#method__setLastRow", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_setOverhangValue", "url": "YAHOO.widget.ScrollingDataTable.html#method__setOverhangValue", "type": "method"}, {"access": "private", "host": "YAHOO.widget.RecordSet", "name": "_setRecord", "url": "YAHOO.widget.RecordSet.html#method__setRecord", "type": "method"}, {"access": "", "host": "YAHOO.widget.RecordSet", "name": "setRecord", "url": "YAHOO.widget.RecordSet.html#method_setRecord", "type": "method"}, {"access": "", "host": "YAHOO.widget.RecordSet", "name": "setRecords", "url": "YAHOO.widget.RecordSet.html#method_setRecords", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_setRowStripes", "url": "YAHOO.widget.DataTable.html#method__setRowStripes", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_setSelections", "url": "YAHOO.widget.DataTable.html#method__setSelections", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_sFirstTrId", "url": "YAHOO.widget.DataTable.html#property__sFirstTrId", "type": "property"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "show", "url": "YAHOO.widget.BaseCellEditor.html#method_show", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "showCellEditor", "url": "YAHOO.widget.DataTable.html#method_showCellEditor", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "showColumn", "url": "YAHOO.widget.DataTable.html#method_showColumn", "type": "method"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "showEvent", "url": "YAHOO.widget.BaseCellEditor.html#event_showEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.ScrollingDataTable", "name": "showTableMessage", "url": "YAHOO.widget.ScrollingDataTable.html#method_showTableMessage", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "showTableMessage", "url": "YAHOO.widget.DataTable.html#method_showTableMessage", "type": "method"}, {"access": "private", "host": "YAHOO.widget.RecordSet", "name": "_sId", "url": "YAHOO.widget.RecordSet.html#property__sId", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Record", "name": "_sId", "url": "YAHOO.widget.Record.html#property__sId", "type": "property"}, {"access": "private", "host": "YAHOO.widget.BaseCellEditor", "name": "_sId", "url": "YAHOO.widget.BaseCellEditor.html#property__sId", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_sId", "url": "YAHOO.widget.DataTable.html#property__sId", "type": "property"}, {"access": "private", "host": "YAHOO.widget.ColumnSet", "name": "_sId", "url": "YAHOO.widget.ColumnSet.html#property__sId", "type": "property"}, {"access": "private", "host": "YAHOO.widget.Column", "name": "_sId", "url": "YAHOO.widget.Column.html#property__sId", "type": "property"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_sLastTrId", "url": "YAHOO.widget.DataTable.html#property__sLastTrId", "type": "property"}, {"access": "", "host": "YAHOO.widget.Column", "name": "sortable", "url": "YAHOO.widget.Column.html#property_sortable", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "sortColumn", "url": "YAHOO.widget.DataTable.html#method_sortColumn", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "sortedBy", "url": "YAHOO.widget.DataTable.html#config_sortedBy", "type": "config"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "sortedByChange", "url": "YAHOO.widget.DataTable.html#event_sortedByChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.Column", "name": "sortOptions.defaultDir", "url": "YAHOO.widget.Column.html#property_sortOptions.defaultDir", "type": "property"}, {"access": "", "host": "YAHOO.widget.Column", "name": "sortOptions.defaultOrder", "url": "YAHOO.widget.Column.html#property_sortOptions.defaultOrder", "type": "property"}, {"access": "", "host": "YAHOO.widget.Column", "name": "sortOptions.field", "url": "YAHOO.widget.Column.html#property_sortOptions.field", "type": "property"}, {"access": "", "host": "YAHOO.widget.Column", "name": "sortOptions.sortFunction", "url": "YAHOO.widget.Column.html#property_sortOptions.sortFunction", "type": "property"}, {"access": "", "host": "YAHOO.widget.RecordSet", "name": "sortRecords", "url": "YAHOO.widget.RecordSet.html#method_sortRecords", "type": "method"}, {"access": "", "host": "YAHOO.util.ColumnResizer", "name": "startDrag", "url": "YAHOO.util.ColumnResizer.html#method_startDrag", "type": "method"}, {"access": "", "host": "YAHOO.util.Chain", "name": "stop", "url": "YAHOO.util.Chain.html#method_stop", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_storeScrollPositions", "url": "YAHOO.widget.ScrollingDataTable.html#method__storeScrollPositions", "type": "method"}, {"access": "private", "host": "YAHOO.widget.BaseCellEditor", "name": "_sType", "url": "YAHOO.widget.BaseCellEditor.html#property__sType", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "summary", "url": "YAHOO.widget.DataTable.html#config_summary", "type": "config"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "summaryChange", "url": "YAHOO.widget.DataTable.html#event_summaryChange", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "_syncColWidths", "url": "YAHOO.widget.DataTable.html#method__syncColWidths", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_syncScroll", "url": "YAHOO.widget.ScrollingDataTable.html#method__syncScroll", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_syncScrollOverhang", "url": "YAHOO.widget.ScrollingDataTable.html#method__syncScrollOverhang", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_syncScrollX", "url": "YAHOO.widget.ScrollingDataTable.html#method__syncScrollX", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_syncScrollY", "url": "YAHOO.widget.ScrollingDataTable.html#method__syncScrollY", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "tableBlurEvent", "url": "YAHOO.widget.DataTable.html#event_tableBlurEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "tableClickEvent", "url": "YAHOO.widget.DataTable.html#event_tableClickEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "tableDblclickEvent", "url": "YAHOO.widget.DataTable.html#event_tableDblclickEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "tableFocusEvent", "url": "YAHOO.widget.DataTable.html#event_tableFocusEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "tableKeyEvent", "url": "YAHOO.widget.DataTable.html#event_tableKeyEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "tableMousedownEvent", "url": "YAHOO.widget.DataTable.html#event_tableMousedownEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "tableMouseoutEvent", "url": "YAHOO.widget.DataTable.html#event_tableMouseoutEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "tableMouseoverEvent", "url": "YAHOO.widget.DataTable.html#event_tableMouseoverEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "tableMouseupEvent", "url": "YAHOO.widget.DataTable.html#event_tableMouseupEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "tableMsgHideEvent", "url": "YAHOO.widget.DataTable.html#event_tableMsgHideEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "tableMsgShowEvent", "url": "YAHOO.widget.DataTable.html#event_tableMsgShowEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.ScrollingDataTable", "name": "tableScrollEvent", "url": "YAHOO.widget.ScrollingDataTable.html#event_tableScrollEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "tbodyFocusEvent", "url": "YAHOO.widget.DataTable.html#event_tbodyFocusEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "tbodyKeyEvent", "url": "YAHOO.widget.DataTable.html#event_tbodyKeyEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.TextareaCellEditor", "name": "textarea", "url": "YAHOO.widget.TextareaCellEditor.html#property_textarea", "type": "property"}, {"access": "", "host": "YAHOO.widget.TextboxCellEditor", "name": "textbox", "url": "YAHOO.widget.TextboxCellEditor.html#property_textbox", "type": "property"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "theadCellClickEvent", "url": "YAHOO.widget.DataTable.html#event_theadCellClickEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "theadCellDblclickEvent", "url": "YAHOO.widget.DataTable.html#event_theadCellDblclickEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "theadCellMousedownEvent", "url": "YAHOO.widget.DataTable.html#event_theadCellMousedownEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "theadCellMouseoutEvent", "url": "YAHOO.widget.DataTable.html#event_theadCellMouseoutEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "theadCellMouseoverEvent", "url": "YAHOO.widget.DataTable.html#event_theadCellMouseoverEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "theadCellMouseupEvent", "url": "YAHOO.widget.DataTable.html#event_theadCellMouseupEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "theadFocusEvent", "url": "YAHOO.widget.DataTable.html#event_theadFocusEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "theadKeyEvent", "url": "YAHOO.widget.DataTable.html#event_theadKeyEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "theadLabelClickEvent", "url": "YAHOO.widget.DataTable.html#event_theadLabelClickEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "theadLabelDblclickEvent", "url": "YAHOO.widget.DataTable.html#event_theadLabelDblclickEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "theadLabelMousedownEvent", "url": "YAHOO.widget.DataTable.html#event_theadLabelMousedownEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "theadLabelMouseoutEvent", "url": "YAHOO.widget.DataTable.html#event_theadLabelMouseoutEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "theadLabelMouseoverEvent", "url": "YAHOO.widget.DataTable.html#event_theadLabelMouseoverEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "theadLabelMouseupEvent", "url": "YAHOO.widget.DataTable.html#event_theadLabelMouseupEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "theadRowClickEvent", "url": "YAHOO.widget.DataTable.html#event_theadRowClickEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "theadRowDblclickEvent", "url": "YAHOO.widget.DataTable.html#event_theadRowDblclickEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "theadRowMousedownEvent", "url": "YAHOO.widget.DataTable.html#event_theadRowMousedownEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "theadRowMouseoutEvent", "url": "YAHOO.widget.DataTable.html#event_theadRowMouseoutEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "theadRowMouseoverEvent", "url": "YAHOO.widget.DataTable.html#event_theadRowMouseoverEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "theadRowMouseupEvent", "url": "YAHOO.widget.DataTable.html#event_theadRowMouseupEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.RecordSet", "name": "toString", "url": "YAHOO.widget.RecordSet.html#method_toString", "type": "method"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "toString", "url": "YAHOO.widget.BaseCellEditor.html#method_toString", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "toString", "url": "YAHOO.widget.DataTable.html#method_toString", "type": "method"}, {"access": "", "host": "YAHOO.widget.ColumnSet", "name": "toString", "url": "YAHOO.widget.ColumnSet.html#method_toString", "type": "method"}, {"access": "", "host": "YAHOO.widget.Column", "name": "toString", "url": "YAHOO.widget.Column.html#method_toString", "type": "method"}, {"access": "", "host": "YAHOO.widget.ColumnSet", "name": "tree", "url": "YAHOO.widget.ColumnSet.html#property_tree", "type": "property"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "unblock", "url": "YAHOO.widget.BaseCellEditor.html#method_unblock", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "undisable", "url": "YAHOO.widget.DataTable.html#method_undisable", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "undisableEvent", "url": "YAHOO.widget.DataTable.html#event_undisableEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "unhighlightCell", "url": "YAHOO.widget.DataTable.html#method_unhighlightCell", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "unhighlightColumn", "url": "YAHOO.widget.DataTable.html#method_unhighlightColumn", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "unhighlightRow", "url": "YAHOO.widget.DataTable.html#method_unhighlightRow", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "unselectAllCells", "url": "YAHOO.widget.DataTable.html#method_unselectAllCells", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "unselectAllCellsEvent", "url": "YAHOO.widget.DataTable.html#event_unselectAllCellsEvent", "type": "event"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "unselectAllRows", "url": "YAHOO.widget.DataTable.html#method_unselectAllRows", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "unselectAllRowsEvent", "url": "YAHOO.widget.DataTable.html#event_unselectAllRowsEvent", "type": "event"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_unselectAllTdEls", "url": "YAHOO.widget.DataTable.html#method__unselectAllTdEls", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_unselectAllTrEls", "url": "YAHOO.widget.DataTable.html#method__unselectAllTrEls", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "unselectCell", "url": "YAHOO.widget.DataTable.html#method_unselectCell", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "unselectColumn", "url": "YAHOO.widget.DataTable.html#method_unselectColumn", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "unselectRow", "url": "YAHOO.widget.DataTable.html#method_unselectRow", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_unsetFirstRow", "url": "YAHOO.widget.DataTable.html#method__unsetFirstRow", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_unsetLastRow", "url": "YAHOO.widget.DataTable.html#method__unsetLastRow", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "updateCell", "url": "YAHOO.widget.DataTable.html#method_updateCell", "type": "method"}, {"access": "", "host": "YAHOO.widget.RecordSet", "name": "updateKey", "url": "YAHOO.widget.RecordSet.html#method_updateKey", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_updatePaginator", "url": "YAHOO.widget.DataTable.html#method__updatePaginator", "type": "method"}, {"access": "", "host": "YAHOO.widget.RecordSet", "name": "updateRecord", "url": "YAHOO.widget.RecordSet.html#method_updateRecord", "type": "method"}, {"access": "", "host": "YAHOO.widget.RecordSet", "name": "updateRecordValue", "url": "YAHOO.widget.RecordSet.html#method_updateRecordValue", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "updateRow", "url": "YAHOO.widget.DataTable.html#method_updateRow", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "updateRows", "url": "YAHOO.widget.DataTable.html#method_updateRows", "type": "method"}, {"access": "private", "host": "YAHOO.widget.DataTable", "name": "_updateTrEl", "url": "YAHOO.widget.DataTable.html#method__updateTrEl", "type": "method"}, {"access": "private", "host": "YAHOO.widget.ScrollingDataTable", "name": "_validateColumnWidth", "url": "YAHOO.widget.ScrollingDataTable.html#method__validateColumnWidth", "type": "method"}, {"access": "", "host": "YAHOO.widget.ScrollingDataTable", "name": "validateColumnWidths", "url": "YAHOO.widget.ScrollingDataTable.html#method_validateColumnWidths", "type": "method"}, {"access": "", "host": "YAHOO.widget.DataTable", "name": "validateColumnWidths", "url": "YAHOO.widget.DataTable.html#method_validateColumnWidths", "type": "method"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "validator", "url": "YAHOO.widget.BaseCellEditor.html#property_validator", "type": "property"}, {"access": "", "host": "YAHOO.widget.BaseCellEditor", "name": "value", "url": "YAHOO.widget.BaseCellEditor.html#property_value", "type": "property"}, {"access": "", "host": "YAHOO.widget.CheckboxCellEditor", "name": "value", "url": "YAHOO.widget.CheckboxCellEditor.html#property_value", "type": "property"}, {"access": "", "host": "YAHOO.widget.ScrollingDataTable", "name": "width", "url": "YAHOO.widget.ScrollingDataTable.html#config_width", "type": "config"}, {"access": "", "host": "YAHOO.widget.Column", "name": "width", "url": "YAHOO.widget.Column.html#property_width", "type": "property"}, {"access": "", "host": "YAHOO.widget.ScrollingDataTable", "name": "widthChange", "url": "YAHOO.widget.ScrollingDataTable.html#event_widthChange", "type": "event"}];
</script>
</body>
</html>
